updated aws_meta.sh

pull/2/head
Hari Sekhon 5 years ago
parent 9fa4ae732f
commit bc36b36b8c

@ -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
fi

Loading…
Cancel
Save