We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b82a128 commit b610f5dCopy full SHA for b610f5d
.pre-commit-config.yaml
@@ -1,6 +1,6 @@
1
repos:
2
- repo: https://github.com/antonbabenko/pre-commit-terraform
3
- rev: v1.96.1
+ rev: v1.99.0
4
hooks:
5
- id: terraform_fmt
6
- id: terraform_wrapper_module_for_each
modules/service/main.tf
@@ -285,7 +285,7 @@ resource "aws_ecs_service" "ignore_task_definition" {
285
286
dynamic "network_configuration" {
287
# 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 }] : []
+ for_each = var.network_mode == "awsvpc" && !local.is_external_deployment ? [local.network_configuration] : []
289
290
content {
291
assign_public_ip = network_configuration.value.assign_public_ip
0 commit comments