# Error validating provider credentials: error calling sts:GetCallerIdentity: RequestError: send request failed

**URL:** <https://discuss.hashicorp.com/t/error-validating-provider-credentials-error-calling-sts-requesterror-send-request-failed/4911>\
**Category:** Terraform Providers\
**Created:** [January 6, 2020, 4:31pm UTC](https://discuss.hashicorp.com/t/error-validating-provider-credentials-error-calling-sts-requesterror-send-request-failed/4911 "2020-01-06T16:31:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupaliatl](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rupaliatl/32/3866_2.png) [@rupaliatl](https://discuss.hashicorp.com/u/rupaliatl)\
**Post date:** [January 6, 2020, 4:31pm UTC](https://discuss.hashicorp.com/t/error-validating-provider-credentials-error-calling-sts-requesterror-send-request-failed/4911/1 "2020-01-06T16:31:25Z")

</div>

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/:](https://sts.amazonaws.com/:) Forbidden "

---

<div class="post-metadata">

**Author:** ![dsyorkd](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dsyorkd/32/5951_2.png) [@dsyorkd](https://discuss.hashicorp.com/u/dsyorkd)\
**Post date:** [April 11, 2020, 2:02pm UTC](https://discuss.hashicorp.com/t/error-validating-provider-credentials-error-calling-sts-requesterror-send-request-failed/4911/2 "2020-04-11T14:02:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![akash-codes93](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/akash-codes93/32/28442_2.png) [@akash-codes93](https://discuss.hashicorp.com/u/akash-codes93)\
**Post date:** [May 28, 2022, 5:03pm UTC](https://discuss.hashicorp.com/t/error-validating-provider-credentials-error-calling-sts-requesterror-send-request-failed/4911/3 "2022-05-28T17:03:40Z")

</div>

Any updated on this??  
I am facing the same issue. Here are the DEBUG logs

````auto
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```
````
