Merge pull request #1690 from cygnus8595/instance-attachment-bc

Rename instance attachment to match versions 23 and earlier
This commit is contained in:
apichick 2023-09-20 11:32:05 +02:00 committed by GitHub
commit 67f5cdc2a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}