Browse Source

Terraform format

master
lavenderguitar 3 years ago
parent
commit
6f75fec8a2
  1. 2
      terraform/firewall.tf
  2. 4
      terraform/variables.tf

2
terraform/firewall.tf

@ -1,7 +1,7 @@
resource "linode_firewall_device" "site-firewall-vms" { resource "linode_firewall_device" "site-firewall-vms" {
count = length(var.app_servers) count = length(var.app_servers)
firewall_id = linode_firewall.site-firewall.id firewall_id = linode_firewall.site-firewall.id
entity_id = "${element(linode_instance.site-vm.*.id, count.index)}" entity_id = element(linode_instance.site-vm.*.id, count.index)
} }
resource "linode_firewall" "site-firewall" { resource "linode_firewall" "site-firewall" {

4
terraform/variables.tf

@ -30,10 +30,10 @@ variable "ssh_key" {
variable "app_servers" { variable "app_servers" {
description = "Details describing the vm instances for the app" description = "Details describing the vm instances for the app"
type = list type = list(any)
} }
variable "bastion_server" { variable "bastion_server" {
description = "Details describing the bastion instance." description = "Details describing the bastion instance."
type = map type = map(any)
} }
Loading…
Cancel
Save