Skip to content

Commit 255304f

Browse files
committed
Interpolate subnet name locals for map keys
1 parent a2b08dd commit 255304f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/fixtures/full/main.tf

+2-3
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ module "vpc" {
7474
]
7575

7676
secondary_ranges = {
77-
local.subnet_name_01 = [
77+
"${local.subnet_name_01}" = [
7878
{
7979
range_name = "${local.subnet_name_01}-secondary"
8080
ip_cidr_range = "192.168.64.0/24"
8181
},
8282
]
83-
local.subnet_name_02 = [
83+
"${local.subnet_name_02}" = [
8484
{
8585
range_name = "${local.subnet_name_02}-secondary"
8686
ip_cidr_range = "192.168.74.0/24"
@@ -159,4 +159,3 @@ resource "google_service_account_iam_member" "additive_service_account_grant_to_
159159
role = "roles/iam.serviceAccountUser"
160160
member = "serviceAccount:${google_service_account.extra_service_account.email}"
161161
}
162-

0 commit comments

Comments
 (0)