aws-samples / aws-samples/aws-codedeploy-samples
common_functions.sh does not use IMDSv2
Open
- Dominant language
- Shell
- Stars
- 639
- Forks
- 778
- PR merge metrics
- No merged PRs in 30d
Description
For customers who turn off IMDSv1 the helper scripts will fail:
https://github.com/aws-samples/aws-codedeploy-samples/blob/fe237a2c7e73152f6d00758fbe5c149a9fa34e68/load-balancing/elb-v2/common_functions.sh#L110
Consider retrieving the IMDSv2 token before making calls like the one above.
Contributor guide
Assessment
This issue has not been assessed yet.