aws-containers / ecsworkshop

MIT No Attribution
24 stars 88 forks source link

IMDSv2 is required by default but guide uses IMDSv1 #135

Open IsaacMurtagh opened 1 month ago

IsaacMurtagh commented 1 month ago

From this release note: https://aws.amazon.com/about-aws/whats-new/2024/03/set-imdsv2-default-new-instance-launches Mar 25, 2024, EC2 instances created will have IMDSv2 required by default.

This version requires authentication when calling the metadata endpoint: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html

Following the setting up of the Cloud 9 workspace section of the guide, it uses the IMDSv1 endpoint meaning users of the guide get stuck very early. The rest of the guide also has sections referencing the IMDSv1 endpoint.

IsaacMurtagh commented 1 month ago

Pull request to resolve this issue: https://github.com/aws-containers/ecsworkshop/pull/134