Skip to content

Instantly share code, notes, and snippets.

@mttjohnson
Created June 13, 2019 20:24
Show Gist options
  • Select an option

  • Save mttjohnson/54ef0b6b26d1509c0613e5f69d3df225 to your computer and use it in GitHub Desktop.

Select an option

Save mttjohnson/54ef0b6b26d1509c0613e5f69d3df225 to your computer and use it in GitHub Desktop.
Cloud VM Instance Type Info (aws/gcp/azue/digitalocean)
# AWS
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
curl http://169.254.169.254/latest/dynamic/instance-identity/document
# Azure
curl http://169.254.169.254/metadata/v1/InstanceInfo
# GCP
# https://cloud.google.com/compute/docs/storing-retrieving-metadata#querying
curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/machine-type"
# Digital Ocean
# https://developers.digitalocean.com/documentation/metadata/
curl http://169.254.169.254/metadata/v1/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment