Skip to content

Commit 3f85e7a

Browse files
authored
Merge pull request #29 from wyTrivail/terraform
use taskdef family instead of its arn, because the arn sometimes poin…
2 parents b348b7d + 55e1f39 commit 3f85e7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform/ecs/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ resource "aws_ecs_service" "aoc" {
138138
count = var.sample_app_callable ? 1 : 0
139139
name = "aocservice-${module.common.testing_id}"
140140
cluster = module.ecs_cluster.cluster_id
141-
task_definition = aws_ecs_task_definition.aoc.arn
141+
task_definition = "${aws_ecs_task_definition.aoc.family}:1"
142142
desired_count = 1
143143
launch_type = var.ecs_launch_type
144144

@@ -164,7 +164,7 @@ resource "aws_ecs_service" "aoc_without_sample_app" {
164164
count = !var.sample_app_callable ? 1 : 0
165165
name = "aocservice-${module.common.testing_id}"
166166
cluster = module.ecs_cluster.cluster_id
167-
task_definition = aws_ecs_task_definition.aoc.arn
167+
task_definition = "${aws_ecs_task_definition.aoc.family}:1"
168168
desired_count = 1
169169
launch_type = var.ecs_launch_type
170170

0 commit comments

Comments
 (0)