From 5125c3bc327cb737d53c46030fcee62cba0189bb Mon Sep 17 00:00:00 2001 From: Steve Sklar Date: Mon, 28 Jun 2021 21:23:39 -0400 Subject: [PATCH] Adds taskDefinitionArn to task failure CloudWatch event rule --- main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index af93ea4..28caf50 100644 --- a/main.tf +++ b/main.tf @@ -112,7 +112,8 @@ resource "aws_cloudwatch_event_rule" "task_failure" { {"anything-but": 0} ] }, - "clusterArn": ["${local.ecs_cluster_arn}"] + "clusterArn": ["${local.ecs_cluster_arn}"], + "taskDefinitionArn": ["${aws_ecs_task_definition.this.arn}"] } } EOF