I installed AWS for Powershell Tools on 3 machines - two Windows servers and one desktop Windows PC. Using the same configuration, one server fails with the error
GET-S3Bucket Name resolution failure attempting to reach service in region eu-west-1 (as supplied to the -Region parameter or from the configured shell default))
There's no firewall issue and on the server that fails I CAN reach out to my AWS account using SyncbackPro - the third party Backup management tool.
Pass the region parameter in with the command to see if that helps:
Get-S3Bucket -Region eu-west-1
Otherwise, do you have a proxy server which could be in the way? Or a proxy client that you need to bypass? Set-AWSProxy can be used for that
In my case it was TLS version issue. After executing the following command everything got to work:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Found it here: https://www.codyhosterman.com/2016/06/force-the-invoke-restmethod-powershell-cmdlet-to-use-tls-1-2/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With