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
posta 4 mesi fa234 visualizzazioni
3 Risposte
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
ESPERTO
con risposta 4 mesi fa
  • 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
con risposta 4 mesi fa
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!

con risposta 4 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande