Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Name resolution failure attempting to reach service in region eu-west-1

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.

like image 215
amartinez Avatar asked Oct 20 '25 09:10

amartinez


2 Answers

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

like image 169
Dicky Moore Avatar answered Oct 22 '25 23:10

Dicky Moore


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/

like image 20
romero84 Avatar answered Oct 22 '25 23:10

romero84