1

The following code is working as expected.But,It did not work when I replaced the revision number 2 with wild card * since I want work for current revision number which can be any number. "arn:aws:ecs:us-east-1:********:task-definition/test-definition-task:"

Can anyone suggest the better approach so that it will work for the current revision?

{
  "detail-type": [
    "ECS Task State Change"
  ],
  "source": [
    "aws.ecs"
  ],
  "detail": {
    "taskDefinitionArn": [
      "arn:aws:ecs:us-east-1:*********:task-definition/test-definition-task:2"
    ],
    "stoppedReason": [
      "Essential container in task exited"
    ],
    "lastStatus": [
      "STOPPED"
    ]
  }
}
0

1 Answer 1

0

Afaik EB does not support wildcards. Instead you can use a prefix pattern:

"taskDefinitionArn": [
  { "prefix": "arn:aws:ecs:us-east-1:*********:task-definition/test-definition-task:" }
],
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.