We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7120f2b commit c817ed9Copy full SHA for c817ed9
modules/service/main.tf
@@ -97,7 +97,7 @@ resource "aws_ecs_service" "this" {
97
98
dynamic "network_configuration" {
99
# Set by task set if deployment controller is external
100
- for_each = var.network_mode == "awsvpc" ? [{ for k, v in local.network_configuration : k => v if !local.is_external_deployment }] : []
+ for_each = var.network_mode == "awsvpc" && !local.is_external_deployment ? [local.network_configuration] : []
101
102
content {
103
assign_public_ip = network_configuration.value.assign_public_ip
0 commit comments