From bc36b36b8c5090ec1bdf14fb05b0fa9ea04325ab Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Fri, 24 Jan 2020 10:09:16 +0000 Subject: [PATCH] updated aws_meta.sh --- aws_meta.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws_meta.sh b/aws_meta.sh index 96cc1f0e..c3ef2156 100755 --- a/aws_meta.sh +++ b/aws_meta.sh @@ -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