Skip to content

Commit b610f5d

Browse files
committed
fix: Sync both serice definitions
1 parent b82a128 commit b610f5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.96.1
3+
rev: v1.99.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each

modules/service/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ resource "aws_ecs_service" "ignore_task_definition" {
285285

286286
dynamic "network_configuration" {
287287
# Set by task set if deployment controller is external
288-
for_each = var.network_mode == "awsvpc" ? [{ for k, v in local.network_configuration : k => v if !local.is_external_deployment }] : []
288+
for_each = var.network_mode == "awsvpc" && !local.is_external_deployment ? [local.network_configuration] : []
289289

290290
content {
291291
assign_public_ip = network_configuration.value.assign_public_ip

0 commit comments

Comments
 (0)