FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use IMDSv2 to get instance metadata -ELB by rajeshfintech · Pull Request #103 · aws-samples/aws-codedeploy-samples · GitHub

Use IMDSv2 to get instance metadata -ELB - #103

Open
rajeshfintech wants to merge 1 commit into
aws-samples:masterfrom
rajeshfintech:patch-2
Open

Use IMDSv2 to get instance metadata -ELB#103
rajeshfintech wants to merge 1 commit into
aws-samples:masterfrom
rajeshfintech:patch-2

Conversation

rajeshfintech commented Sep 17, 2022
edited
Loading

Copy link
Copy Markdown

Issue #95
This is similar to other PR on elbv2 #102 Current version of script breaks when IMDSv2 is enforced on EC2 instances( "InstanceMetadataOptions": {
"HttpTokens": "required",
} )

Description of changes:
To improve security, AWS recommend to use IMDSv2, the session-oriented communication to get instance metadata.https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html. This change is backward compatible with IMDSv1. Also updated the request to get the region using placement/region this feature was released by AWS on 2020-08-24 - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Issue #, if available:
This is similar to other PR on elbv2  aws-samples#102 
Current version of script breaks when IMDSv2 is enforced on EC2 instances(
"InstanceMetadataOptions": {
"HttpTokens": "required",
} )

Description of changes:
To improve security, AWS recommend to use IMDSv2, the session-oriented communication to get instance metadata.https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html. This change is backward compatible with IMDSv1.
Also updated the request to get the region using placement/region this feature was released by AWS on 2020-08-24 - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL