Apprunner showing Must be a valid ECR image URI.

0

Hello

I have an apprunner that is working perfectly and every week we deploy a new image on that AppRunner. And today we created a docker image and tested it in local environment and uploaded it to ECR and tried to deploy that image on AppRunner. Now when I change Container image URI in Apprunner it shows me the error "Must be a valid ECR image URI" I have also added **Container image URI **using the Browse segment, But facing the same error.

I have checked the Docker image is built properly and working in the local environment.

Please help me out with this

Enter image description here

Dhruv
asked 3 months ago224 views
3 Answers
1

Hi,

Can you take a look at the events in CloudTrail and check if during creation/deployment of your service App Runner tries to assume the role AppRunnerECRAccessRole. If STS is not enaable, it will fail due to with exception STS is not activated in this region" ?

If that is the case, activate STS according to https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-activate-deactivate.

Best,

Didier

profile pictureAWS
EXPERT
answered 3 months ago
  • Hello

    Well I have checked the issue is with ECR name My ECR repo :- <account-ID>.dkr.ecr.us-east-1.amazonaws.com/app/dev:<Tag>

    the extra "/" after app is an issue when I removed the slash and deployed its work.

  • Ok, i'll go with your solution and see if it's deploying or not.

  • enabling STS for all endpoints did nothing to remedy this issue

0

Hello

Well I have checked the issue is with ECR name My ECR repo :- <account-ID>.dkr.ecr.us-east-1.amazonaws.com/app/dev:<Tag>

the extra "/" after app is an issue when I removed the slash and deployed its work.

THIS IS AN ISSUE.

Dhruv
answered 3 months ago
0

I have the same Issue - I can not create or update AppRunner Deployments with images that contain forward slashes in their name - as shown in the example above. this has worked previously!

answered 3 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