AWS/Metadata awsmetadatainstance-idcurrentbash 12/02/2017

Get instance ID of current instance from bash

Examples:

instanceid=`wget -q -O - http://169.254.169.254/latest/meta-data/instance-id`