@ -40,7 +40,8 @@ if [ $# -ne 1 ] ||
usage
fi
if ! curl -s --connect-timeout 2 http://169.254.169.254/ &>/dev/null; then
if ! curl -sS --connect-timeout 2 http://169.254.169.254/ &>/dev/null; then
echo
echo "This script must be run from within an EC2 instance as that is the only place the AWS EC2 Metadata API is available"
exit 2