Function aws_manager::ec2::metadata::fetch_metadata_by_path
source · [−]Expand description
Fetches instance metadata service v2 with the “path”. ref. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html ref. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html ref. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html e.g., curl -H “X-aws-ec2-metadata-token: $TOKEN” -v http://169.254.169.254/latest/meta-data/public-ipv4