reversing instance attachment names

This commit is contained in:
John Inama 2023-09-18 13:02:09 -04:00
parent 10b9c9e2a6
commit 8469c86e63
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ resource "google_apigee_nat_address" "apigee_nat" {
resource "google_apigee_instance_attachment" "instance_attachments" {
for_each = merge(concat([for k1, v1 in var.instances : {
for v2 in coalesce(v1.environments, []) :
"${v2}-${k1}" => {
"${k1}-${v2}" => {
instance = k1
environment = v2
}