From 8469c86e63c0c0aaba055438e9f8c5b35cd63b9d Mon Sep 17 00:00:00 2001 From: John Inama Date: Mon, 18 Sep 2023 13:02:09 -0400 Subject: [PATCH] reversing instance attachment names --- modules/apigee/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apigee/main.tf b/modules/apigee/main.tf index cd1f7197..4557527d 100644 --- a/modules/apigee/main.tf +++ b/modules/apigee/main.tf @@ -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 }