For customers who turn off IMDSv1 the helper scripts will fail: https://github.com/aws-samples/aws-codedeploy-samples/blob/fe237a2c7e73152f6d00758fbe5c149a9fa34e68/load-balancing/elb-v2/common_functions.sh#L110 Consider retrieving the IMDSv2 token before making calls like the one above.