Calling cmdlets from AWS.Tools.S3 delay due to connecting to IP address 169.254.169.254 #345
-
For example
Error "HTTP/1.0 504 Gateway Timeout" is returned after some time. When parameter -Region is specified (or AWS_REGION variable is set):
PowerShell 5.1 running on Windows 2016 server or Windows 10 22H2, AWS.Tools.S3 version 4.1.552. Is it possible to avoid connecting to 169.254.169.254 and connect directly to .s3.amazonaws.com? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The AWS Tools for PowerShell need a region in order to communicate with S3, if one is not specified (like you mentioned via environment variable, parameter, or in the shared configuration file) we'll reach out to the Instance Metadata Service (IMDS) - it's the For the timeouts, are you running this Cmdlet on EC2? If yes, I'd double check whether IMDS is enabled; if not, then you'll need to specify the region in one of the options listed above. |
Beta Was this translation helpful? Give feedback.
The AWS Tools for PowerShell need a region in order to communicate with S3, if one is not specified (like you mentioned via environment variable, parameter, or in the shared configuration file) we'll reach out to the Instance Metadata Service (IMDS) - it's the
169.254.169.254
address you're seeing.For the timeouts, are you running this Cmdlet on EC2? If yes, I'd double check whether IMDS is enabled; if not, then you'll need to specify the region in one of the options listed above.