Lighsail container from private ECR

1

Hi all,

I've tried setting up my first Lightsail container application and have a built container uploaded to a private ECR (Elastic Container Registry). Each time I try to deploy the container it fails without giving me any information on why, all I'm seeing is that "Deployment Failed", and the details on the container is not much more insightful:
[deployment:5] Creating your deployment
[deployment:5] Started 1 new node
[deployment:5] Started 1 new node
[deployment:5] Started 1 new node
[deployment:5] Canceled

I did find another thread with a user who mentioned this issue, and noted that when on a public registry they're able to push.

My questions are then:

  • Am I not able to use lightsail with a private repo (e.g. ECR)?
  • How would I setup an IAM profile to allow this, if possible?

Thank you in advance.

已提問 3 年前檢視次數 353 次
2 個答案
0
已接受的答案

Hi macolsson,

You'll have to push your container images directly to Lightsail where they will be kept private. Here are some instructions:

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-pushing-container-images#push-container-images

AWS
Alex
已回答 3 年前
0

Hi Alex, thanks for your response. This is the route I took and as I figured.

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南