From bc66b14208d87fe0c4180026e6b3026458157aec Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Thu, 14 May 2020 05:39:02 -0400 Subject: [PATCH] Fix rule --- .../cloudformation/dt/cloudwatch.yaml | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/infrastructure/cloudformation/dt/cloudwatch.yaml b/infrastructure/cloudformation/dt/cloudwatch.yaml index 34ecf77..d0ccd2e 100644 --- a/infrastructure/cloudformation/dt/cloudwatch.yaml +++ b/infrastructure/cloudformation/dt/cloudwatch.yaml @@ -26,14 +26,16 @@ Parameters: Resources: TaskListRule: - EventPattern: - source: - - "aws.ecs" - detail-type: - - "ECS Task State Change" - detail: - clusterArn: - - !Ref Cluster - Targets: - - Id: RedisUpdater - Arn: !Ref LambdaArn \ No newline at end of file + Type: AWS::Events::Rule + Properties: + EventPattern: + source: + - "aws.ecs" + detail-type: + - "ECS Task State Change" + detail: + clusterArn: + - !Ref Cluster + Targets: + - Id: RedisUpdater + Arn: !Ref LambdaArn \ No newline at end of file