File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
common/docker-entrypoint.d Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if [[ -v AWS_CONTAINER_CREDENTIALS_RELATIVE_URI ]]; then
37
37
# b) Using Instance Metadata Service (IMDS) credentials, if IMDS is present at http://169.254.169.254.
38
38
# See https://docs.aws.amazon.com/sdkref/latest/guide/feature-imds-credentials.html.
39
39
# Example: We are running inside an EC2 instance.
40
- elif curl --output /dev/null --silent --head --fail --connect-timeout 2 " http://169.254.169.254" ; then
40
+ elif curl --output /dev/null --silent --head --fail --connect-timeout 2 --max-time 5 " http://169.254.169.254" ; then
41
41
echo " Running inside an EC2 instance, using IMDS for credentials"
42
42
43
43
# c) Using assume role credentials. This is indicated by AWS_WEB_IDENTITY_TOKEN_FILE being set.
You can’t perform that action at this time.
0 commit comments