Skip to content

Commit 214f09b

Browse files
committed
Decrease the timeout to 5s
1 parent eb64ccd commit 214f09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-credential-s3-secrets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ s3_bucket_region() {
6060
then
6161
# This plug-in may not be executing in an AWS VPC or have access to the IDMS
6262
# Fail fast with the --connect-timeout flag
63-
local token=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" --fail --silent --show-error --location --connect-timeout 10 http://169.254.169.254/latest/api/token)
63+
local token=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" --fail --silent --show-error --location --connect-timeout 5 http://169.254.169.254/latest/api/token)
6464
if [ -n "${token}" ]
6565
then
6666
guess_region=$(curl -H "X-aws-ec2-metadata-token: $token" --fail --silent --show-error --location http://169.254.169.254/latest/meta-data/placement/region)

0 commit comments

Comments
 (0)