Skip to content

Commit c817ed9

Browse files
fix: Dynamic network configuration in service module for external deployments with awsvpc networkmode (#185)
fix: #184
1 parent 7120f2b commit c817ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/service/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ resource "aws_ecs_service" "this" {
9797

9898
dynamic "network_configuration" {
9999
# 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 }] : []
100+
for_each = var.network_mode == "awsvpc" && !local.is_external_deployment ? [local.network_configuration] : []
101101

102102
content {
103103
assign_public_ip = network_configuration.value.assign_public_ip

0 commit comments

Comments
 (0)