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
3737# b) Using Instance Metadata Service (IMDS) credentials, if IMDS is present at http://169.254.169.254.
3838# See https://docs.aws.amazon.com/sdkref/latest/guide/feature-imds-credentials.html.
3939# 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
4141 echo " Running inside an EC2 instance, using IMDS for credentials"
4242
4343# 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