How to fix error configuring Terraform AWS Provider error validating provider credentials error calling sts GetCallerIdentity SignatureDoesNotMatch?



In this article we are going to troubleshoot an issue related to Terraform and AWS.

This is occurs when you are trying to use your Old or expired - Access keys (access key ID and secret access key) of your aws account.

You are error should look like -

Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. status code: 403, request id: 49474972-2feb-463a-a51d-e04e3bb2a111

How to fix Issue?

1. First check status of the Access keys?

  1. Goto your AWS console.
  2. On top right corner under your username click on -> My Security Credentials
  3. Then navigate to Access keys (access key ID and secret access key)
  4. Check the status of the key. It should have an ACTIVE status

error configuring Terraform AWS Provider error validating provider credentials error calling sts GetCallerIdentity SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method





2. Copy correct Access Key and Secret Access Key

When ever you create New Access Key make sure you always copy correct details (Access Key, Secret Access Key) into your terraform file.

For example here is sample screenshot of Access Key and Secret Access Key

error configuring Terraform AWS Provider error validating provider credentials error calling sts GetCallerIdentity SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method

In most of the cases user generally does not copy the correct AWS credentials and end up with this issue.

For more details you can follow this GitHub Thread




Read More - Terragrunt -

  1. How to use Terragrunt?

Posts in this Series