Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: Signature expired: is now earlier than (- 15 min.)

When I was configuring the terraform in my server got below error.

Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: Signature expired: 20210206T042543Z is now earlier than 20210206T042641Z (20210206T044141Z – 15 min.)

The error was due to the misconfiguration of time in my server, when we do API calls it will compare the timestamps, if it is within 5 mins it will accept else it will fail with above error.

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s