fix bug in cloud9-cfn.yaml : IMDSv1 EC2 metadata is deprecated in AL2023 (#272) #277
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available: #272
Description of changes: Since Cloud9's default OS has moved from AL2 to AL2023, EC2 metadata retrieval via IMDSv1 became unavailable. It causes failure in deploying Cloud9 environment by cfn template and trouble in following steps described in workshop procedure in "Setup Cloud9 environment" section (https://catalog.us-east-1.prod.workshops.aws/workshops/31676d37-bbe9-4992-9cd1-ceae13c5116c/en-US/installation/setup-cloud9).
This PR modifies cfn template to use IMDSv2 to retrieve EC2 metadata to address with this issue.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.