- Newest
- Most votes
- Most comments
Hi again,
I resolved the issue.
After contacting AWS Support I got some suggestion to resolve the issue:
"one possible cause of this error is the ECS Task Execution Role, defined in the task definition. It is possible that the arn of the ECS task execution role has an error or typo
This could occur, for example, if the task definition is the same as in another account - the role provided may be from that account."
Indeed, the role is cause was not the role used to create the pipeline, or the "ECS Task Execution Role" itself (defined in the AWS account). The problem was the dynamic configuration I was providing to code deploy in "taskdefinition.json". I had to fix the value I provide for the attribute "executionRoleArn".
Suggestion to AWS: display a more explicit error message (tell at least which role is in cause).
Cheers,
Tony
I bumped into the same error message while operating via CI.
It turned out that I forgot to assume the user role before calling ECS operation.
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago