Here is a Bash script for getting a tag value from within a running EC2 Instance. For more information on AWS EC2, please see: https://aws.amazon.com/ec2/ If you're using one of the standard AWS EC2 images, such as Ubuntu, then you'll have everything you need already installed. Thankfully, Amazon installs some tooling on your host that'll help