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
已提问 4 个月前234 查看次数
3 回答
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
专家
已回答 4 个月前
  • 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
已回答 4 个月前
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!

已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则