Skip to content

Commit 8b49dca

Browse files
Dryymoondekobon
authored andcommitted
Fix edgecase with firewall tarpit
1 parent e3068df commit 8b49dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/docker-entrypoint.d/00-check-for-required-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)