Skip to content

Commit

Permalink
feat: Add create option for container definition (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrozimmer authored Nov 15, 2023
1 parent 736a7da commit 66642c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ resource "aws_iam_role_policy_attachment" "service" {
module "container_definition" {
source = "../container-definition"

for_each = { for k, v in var.container_definitions : k => v if local.create_task_definition }
for_each = { for k, v in var.container_definitions : k => v if local.create_task_definition && try(v.create, true)}

operating_system_family = try(var.runtime_platform.operating_system_family, "LINUX")

Expand Down

0 comments on commit 66642c8

Please sign in to comment.