NEW Amazon Linux AMI - IMDSv2 as default

0

Hello Team,

In New Amazon Linux AMI AMI ID ami-02f3f602d23f1659d (al2023-ami-2023.0.20230315.0-kernel-6.1-x86_64), which they launched on 15th March,2023 the Instance Metadata Service comes with version 2 by default where HttpTokens is mandatory. Direct curl http://169.254.169.254/latest/meta-data/instance-id command won’t work here. For IMDSv2, we have fetch the data through token authentication right.

For reference https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html

My question is For the new AMI, I am seeing that by default it comes up with the Instance Metadata Service version as 2. Could you please confirm me that hereafter the NEW AMI released from Amazon will it be having the IMDS version with default version as 2?

질문됨 일 년 전886회 조회
1개 답변
0

Hello

By default Amazon Linux 2023 uses IMDS-v2. However you can override this setting during launch or modify it later after the instance is launched as described here.

Hope this helps.

AWS
지원 엔지니어
Vinay_S
답변함 일 년 전

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

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

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