lib/aws_ec2/scripts/cloudwatch/configure.sh in aws-ec2-1.4.2 vs lib/aws_ec2/scripts/cloudwatch/configure.sh in aws-ec2-1.4.3
- old
+ new
@@ -77,8 +77,8 @@
datetime_format =
EOF
if [ -f /etc/awslogs/awscli.conf ]; then
- region=$(curl 169.254.169.254/latest/meta-data/placement/availability-zone | sed s'/.$//')
+ region=$(curl -s 169.254.169.254/latest/meta-data/placement/availability-zone | sed s'/.$//')
sed -i -e "s/region = us-east-1/region = $region/g" /etc/awslogs/awscli.conf
fi