ec2 get metadata replacement
Walk through ec2 imds v2 meta-data tree path in depth and export corresponding variables including json values flattening. It replaces ec2-metadata CLI:
from "ec2-metadata --help":
<< Use to retrieve EC2 instance metadata from within a running EC2 instance. For more information on Amazon EC2 instance meta-data, refer to the documentation at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html >>
Did you write this script?
yes :D
yes :D
nice! ok only asking since I've seen similar scripts i.e. https://github.com/amazonlinux/amazon-ec2-utils/tree/main
yes, the point was to improve ec2-metadata cli, it's a generic version parsing all the metadata available from IMDS v2
Hi Guillaume, does this PR require additional review and approval or can it be closed?
it looks good...
approved, LGTM
Status?
Status @gmgtamz ?