Could not retrieve mirrorlist http://amazonlinux.default.amazonaws.com/2/co

0

I can not cloudform a usable ec2 instance in us-east-1b. The console log shows this:

\[  117.581749] cloud-init\[3206]: Cannot find a valid baseurl for repo: amzn2-core/2/x86_64  
\[  117.585263] cloud-init\[3206]: Could not retrieve mirrorlist http://amazonlinux.default.amazonaws.com/2/core/latest/x86_64/mirror.list error was  
\[  117.590381] cloud-init\[3206]: 12: Timeout on http://amazonlinux.default.amazonaws.com/2/core/latest/x86_64/mirror.list: (28, 'Connection timed out after 5000 milliseconds')  

I've retried a few time (a dozen?), over the last few hours. Here's the most recent instance id: i-079e1e18a88555d37, the single instance in this cloud formation arn:aws:cloudformation:us-east-1:566653950698:stack/DevelAxe0/01a331b0-9134-11e9-bbf1-0e17762a99e0

Please advise.

질문됨 5년 전4119회 조회
2개 답변
0

Hello,
This timeout error can happen when an instance runs in a private VPC with no Internet access, as the repositories are hosted on S3.
To access the repositories from the instance you can setup an Internet Gateway in your VPC or configure a VPC endpoint to access the repositories: https://aws.amazon.com/amazon-linux-ami/faqs/?nc1=h_ls#vpc-endpoint

Thanks,
Paul

AWS
답변함 5년 전
0

Try checking the inbound & outbound rules of the instance security group. It should work if the http & https ports are open to the internet.

If you are using a VPC, then check the NAT Instance/NAT Gateway.

Edited by: krshnteja on Jul 25, 2021 11:42 AM

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠