Skip to content

Commit

Permalink
fix: alias-ip dynamic block (terraform-google-modules#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Apr 12, 2022
1 parent 3601c5b commit a5b6a81
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions modules/compute_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ resource "google_compute_instance_from_template" "compute_instance" {
network_tier = access_config.value.network_tier
}
}
}
dynamic "alias_ip_range" {
for_each = var.alias_ip_ranges
content {
ip_cidr_range = alias_ip_range.value.ip_cidr_range
subnetwork_range_name = alias_ip_range.value.subnetwork_range_name

dynamic "alias_ip_range" {
for_each = var.alias_ip_ranges
content {
ip_cidr_range = alias_ip_range.value.ip_cidr_range
subnetwork_range_name = alias_ip_range.value.subnetwork_range_name
}
}
}
}
Expand Down

0 comments on commit a5b6a81

Please sign in to comment.