awsome-distributed-training icon indicating copy to clipboard operation
awsome-distributed-training copied to clipboard

ec2 get metadata replacement

Open gmgtamz opened this issue 1 year ago • 7 comments

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 >>

gmgtamz avatar Dec 10 '24 22:12 gmgtamz

Did you write this script?

sean-smith avatar Dec 12 '24 01:12 sean-smith

yes :D

gmgtamz avatar Dec 12 '24 04:12 gmgtamz

yes :D

nice! ok only asking since I've seen similar scripts i.e. https://github.com/amazonlinux/amazon-ec2-utils/tree/main

sean-smith avatar Dec 12 '24 17:12 sean-smith

yes, the point was to improve ec2-metadata cli, it's a generic version parsing all the metadata available from IMDS v2

gmgtamz avatar Dec 12 '24 22:12 gmgtamz

Hi Guillaume, does this PR require additional review and approval or can it be closed?

nghtm avatar Mar 31 '25 01:03 nghtm

it looks good...

gmgtamz avatar Mar 31 '25 13:03 gmgtamz

approved, LGTM

nghtm avatar Apr 01 '25 06:04 nghtm

Status?

mhuguesaws avatar May 21 '25 14:05 mhuguesaws

Status @gmgtamz ?

mhuguesaws avatar May 22 '25 19:05 mhuguesaws