I changed by windows password. After that I started getting below error when I login to AWs via gitBash. Not able to run any Terraform commands. I am doing proxy_on with new passowrd. Also, tried with old password. How can I fix this?
" error validating provider credentials: error calling sts:GetCallerIdentity: RequestError: send request failed
caused by: Post https://sts.amazonaws.com/: Forbidden "
I’m also seeing this on a fresh install,
MacOS Catalina 10.15.3
Terraform: v0.12.20
aws plugin v2.56.0_x4
I have to set to debug as it fails around 12 times with the message Send Request sts/GetCallerIdentity failed, caused by: Post https://sts.amazonaws.com/: net/http: TLS handshake timeout
after around 12 tries it finally succeeds but during that time any requests made from my machine fail if they require a dns lookup.
Using 1.1.1.1 as my only resolver while testing this
Tried using 8.8.8.8 as well same situation
Any updated on this??
I am facing the same issue. Here are the DEBUG logs
2022-05-28T22:19:23.212+0530 [INFO] provider.terraform-provider-aws_v3.75.2_x5: 2022/05/28 22:19:23 [DEBUG] [aws-sdk-go] DEBUG: Send Request sts/GetCallerIdentity failed, attempt 2/25, error RequestError: send request failed
caused by: Post "https://sts.amazonaws.com/": dial tcp: lookup sts.amazonaws.com on 127.0.0.1:53: read udp 127.0.0.1:0->127.0.0.1:53: i/o timeout: timestamp=2022-05-28T22:19:23.212+0530
2022-05-28T22:19:23.417+0530 [INFO] provider.terraform-provider-aws_v3.75.2_x5: 2022/05/28 22:19:23 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request sts/GetCallerIdentity, attempt 3: timestamp=2022-05-28T22:19:23.416+0530
2022-05-28T22:19:23.417+0530 [INFO] provider.terraform-provider-aws_v3.75.2_x5: 2022/05/28 22:19:23 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: sts.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.2.1 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.44.13 (go1.16; darwin; amd64)
Content-Length: 43
Authorization: AWS4-HMAC-SHA256 Credential=XXXXXX/20220528/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=XXXX
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20220528T164923Z
Accept-Encoding: gzip
Action=GetCallerIdentity&Version=2011-06-15```