ECR login not working from IPv6 EC2 instance

0

I created an EC2 instance that has IPv6 address ONLY and the ECR login takes forever, I'm running this command below.

aws ecr get-login-password --region eu-west-1

It eventually times out.

Connect timeout on endpoint URL: "https://api.ecr.eu-west-1.amazonaws.com/"

I tried with another EC2 instance that includes a public IPv4 address in addition to IPv6 and it works fine. Any reason why ECR login doesn't work from IPv6?

Lucian
已提问 6 个月前696 查看次数
1 回答
0
已接受的回答

Hello.

Looking at the issue below, it seems that you cannot pull images from ECR with IPv6 only.
I don't think the reason why IPv6 cannot be used has been made public.
I think AWS will probably support this in the future, but for now I think it's best to make ECR accessible via IPv4.
https://github.com/aws/containers-roadmap/issues/1340

profile picture
专家
已回答 6 个月前
  • Thank you so much! Just a side note, now I have an interesting dilemma. AWS is starting to charge public IPv4 addresses at 1st February 2024. They want to encourage the acceleration of IPv6 adoption. That's why I'm here and considering the IPv4 pricing (not insignificant) I will do just that, stick with IPv6 only and replace ECR with some alternative unfortunately. I'm hoping AWS will add IPv6 support to ECR as soon as possible.

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

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

回答问题的准则