Created
June 13, 2019 20:24
-
-
Save mttjohnson/54ef0b6b26d1509c0613e5f69d3df225 to your computer and use it in GitHub Desktop.
Cloud VM Instance Type Info (aws/gcp/azue/digitalocean)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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