We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98742e commit 66e2c44Copy full SHA for 66e2c44
.github/workflows/run_tests.yaml
@@ -63,7 +63,7 @@ jobs:
63
# Pulled from instance metadata endpoint for EC2
64
# see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
65
category=$1
66
- curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
+ curl -H "X-aws-ec2-metadata-token: $(curl -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 30")" -fsSL "http://169.254.169.254/latest/meta-data/${category}"
67
}
68
echo "ami-id: $(get_ec2_metadata ami-id)"
69
echo "instance-id: $(get_ec2_metadata instance-id)"
0 commit comments