By using AWS re:Post, you agree to the Terms of Use
/Cannot run task from ECR image/

Cannot run task from ECR image


I'm trying to run a task with an image from an ECR container in the same account.

When I try to run the task, it fails, with the following message:

"ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call has been retried 1 time(s): AccessDeniedException: User: arn:aws:sts::XXXXXXXXX:assumed-rol..."

I've tried following this help page: But most of the situations don't apply to me.

Also, you will see that the error message is truncated. Do you know how to get the full error message?

1 Answers

You can use the ECS Logs Collector. Additionally, the log file locations are here.

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions