This repository was archived by the owner on Oct 9, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-23
lines changed Expand file tree Collapse file tree 1 file changed +10
-23
lines changed Original file line number Diff line number Diff line change @@ -1051,33 +1051,20 @@ Resources:
10511051 Properties :
10521052 Name : !Sub "${AWS::StackName}-ecs-task-monitor"
10531053 Description : " Event to notify us of changed status of ECS Task"
1054+ State : ENABLED
10541055 EventPattern : !Sub |
10551056 {
1056- "source": [
1057- "aws.ecs"
1058- ],
1059- "detail-type": [
1060- "ECS Task State Change"
1061- ],
1062- "detail": {
1063- "clusterArn": [
1064- "${Neo4jCluster.Arn}"
1065- ],
1066- "taskDefinitionArn": [
1067- "${Neo4jClusterTask}"
1068- ],
1069- "stoppedReason": ["Essential container in task exited"]
1070- }
1057+ "source": ["aws.ecs"],
1058+ "detail-type": ["ECS Task State Change"],
1059+ "detail": {
1060+ "clusterArn": ["${Neo4jCluster.Arn}"],
1061+ "taskDefinitionArn": ["${Neo4jClusterTask}", "${Neo4jBackupTask}"],
1062+ "stoppedReason": ["Essential container in task exited"]
1063+ }
10711064 }
1072- State : ENABLED
10731065 Targets :
1074- - Arn : !If [CreateSNSTopic, !Ref Neo4jSNSTopic, !Ref SNSTopicArn]
1075- Id : !Sub "${AWS::StackName}-ecs-task-monitor"
1076- Input : !Sub |
1077- {
1078- "message": "Essential container in task exited",
1079- "ecs_cluster": "${Neo4jCluster}"
1080- }
1066+ - Arn : !If [CreateSNSTopic, !Ref Neo4jSNSTopic, !Ref SNSTopicArn]
1067+ Id : !Sub "${AWS::StackName}-ecs-task-monitor"
10811068 TaskMonitorEventSNSPolicy :
10821069 Type : AWS::SNS::TopicPolicy
10831070 Properties :
You can’t perform that action at this time.
0 commit comments