@ -1,7 +1,7 @@
resource "linode_firewall_device" "site-firewall-vms" {
count = length(var.app_servers)
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" {
@ -30,10 +30,10 @@ variable "ssh_key" {
variable "app_servers" {
description = "Details describing the vm instances for the app"
type = list
type = list(any)
variable "bastion_server" {
description = "Details describing the bastion instance."
type = map
type = map(any)