Skip to content

Commit

Permalink
Removes try statement from container_definitions
Browse files Browse the repository at this point in the history
This commit prevents a race condition caused by
the try statement in container_definitions.
See: #128
  • Loading branch information
iycbell committed Mar 14, 2024
1 parent a35b5c8 commit 43d19be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module "service" {
# Task definition
create_task_definition = try(each.value.create_task_definition, true)
task_definition_arn = lookup(each.value, "task_definition_arn", null)
container_definitions = try(each.value.container_definitions, {})
container_definitions = each.value.container_definitions
container_definition_defaults = try(each.value.container_definition_defaults, {})
cpu = try(each.value.cpu, 1024)
ephemeral_storage = try(each.value.ephemeral_storage, {})
Expand Down

0 comments on commit 43d19be

Please sign in to comment.