Skip to content

Instantly share code, notes, and snippets.

View vlj91's full-sized avatar

Vaughan Jones vlj91

View GitHub Profile
@vlj91
vlj91 / aws-interface.sh
Last active July 8, 2016 08:47
aws-interface
#!/bin/bash -l
set -ex
if [[ $UID -ne 0 ]]; then
echo "Please run as the root user" 2>&1
exit 1
fi
## Gather required information
awsregion=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/.$//')