[ecs] [console]: More informative error message when unable to create a new revision of task definition
- Dominant language
- Shell
- Stars
- 5.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
**Tell us about your request**
When I tried to create a new revision of task definition using ECS console, console only returned the following error message, which is not informative for troubleshooting the issue:
` "Unable to create a new revision of Task Definition mytaskdef:101"`
**Which service(s) is this request for?**
ECS
**Are you currently working around this issue?**
Check the detailed error message in CloudTrail "RegisterTaskDefinition" event to figure out that the IAM role lacks the required permissions, for example
`"errorMessage": "User: arn:aws:sts::0123456789:assumed-role/test/testuser is not authorized to perform: iam:PassRole on resource: arn:aws:iam::0123456789:role/arn:aws:iam::0123456789/role/admin"`
Contributor guide
Research direction
Start by reviewing the ECS console task-definition revision flow and the RegisterTaskDefinition event in CloudTrail, using the reported iam:PassRole failure as the example. Determine how the console receives and surfaces this failure. Done means an unsuccessful revision creation reports a useful underlying permission error instead of only the generic message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100