diff --git a/security_groups.tf b/security_groups.tf index 77dbff2..35f10c3 100644 --- a/security_groups.tf +++ b/security_groups.tf @@ -202,7 +202,7 @@ resource "openstack_networking_secgroup_rule_v2" "clients_icmp_access_tunnel_v6" //Allow port 22 and icmp traffic from the bastion resource "openstack_networking_secgroup_rule_v2" "bastion_ssh_accessible_groups_ssh_access" { for_each = { - for pair in setproduct(local.bastion_ssh_accessible_group_ids, var.bastion_group_ids) : "${pair[0].name}-${pair[1].name}" => { sg = pair[0], remote = pair[1] } + for pair in setproduct(local.bastion_ssh_accessible_group_ids, var.bastion_group_ids) : "${pair[0]}-${pair[1]}" => { sg = pair[0], remote = pair[1] } } direction = "ingress" @@ -214,6 +214,7 @@ resource "openstack_networking_secgroup_rule_v2" "bastion_ssh_accessible_groups_ remote_group_id = each.value.remote } + resource "openstack_networking_secgroup_rule_v2" "bastion_member_icmp_access_v4" { for_each = { for idx, id in var.bastion_group_ids : idx => id } direction = "ingress"