Skip to content

Commit

Permalink
Merge pull request #33 from synapsestudios/fix-service-container-defi…
Browse files Browse the repository at this point in the history
…nition-array-index-bug

Add array index to fix bug in fallback value
  • Loading branch information
dragonfleas authored Oct 19, 2023
2 parents 0a34b40 + e83562d commit 30f0112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecs_task_definitions.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

resource "aws_ecs_task_definition" "service" {
family = var.service_name
container_definitions = var.container_definitions != null ? var.container_definitions : "[${module.service_container_definition.json_map_encoded}]"
container_definitions = var.container_definitions != null ? var.container_definitions : "[${module.service_container_definition[0].json_map_encoded}]"
execution_role_arn = aws_iam_role.ecs_task_execution_role.arn
task_role_arn = aws_iam_role.ecs_task_role.arn
network_mode = "awsvpc"
Expand Down

0 comments on commit 30f0112

Please sign in to comment.