IMDSv2 compatibility
kislyuk opened this issue · 0 comments
kislyuk commented
git grep 169.254
python3 -c 'import sys, botocore.utils as b; i=b.IMDSFetcher(); i._get_request(sys.argv[1], None, i._fetch_metadata_token()).text' latest/meta-data/hostname
aegea_imds(){ python3 -c 'import sys, botocore.utils as b; i=b.IMDSFetcher(); print(i._get_request(sys.argv[1], None, i._fetch_metadata_token()).text)' $@; }