It's actually pretty easy to do in AWS:
curl http://169.254.169.254/latest/meta-data/instance-type
And in Google:
curl http://169.254.169.254/computeMetadata/v1/instance/machine-type -H "Metadata-Flavor: Google"
It's actually pretty easy to do in AWS:
curl http:// 169.254. 169.254/ latest/ meta-data/ instance- type
And in Google:
curl http:// 169.254. 169.254/ computeMetadata /v1/instance/ machine- type -H "Metadata-Flavor: Google"