title: AWS Terraform: │ Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity:
body: <p>Error: error configuring Terraform AWS Provider:</p>
  <blockquote>
  <p>error validating provider credentials: error calling sts:GetCallerIdentity: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: 95e52463-8cd7-038-b924-3a5d4ad6ef03, api error InvalidClientTokenId: The security token included in the request is invalid. with provider[&quot;registry.terraform.io/hashicorp/aws&quot;], on provider.tf line 1, in provider &quot;aws&quot;: 1: provider &quot;aws&quot; {</p>
  </blockquote>
  <p>I have only two files.</p>
  <ol>
  <li>instance.tf</li>
  </ol>
  <pre><code>resource &quot;aws_instance&quot; &quot;web&quot; {
    ami           = &quot;ami-068257025f72f470d&quot;
    instance_type = &quot;t2.micro&quot;
      
    tags = {
      Name = &quot;instance_using_terraform&quot;
    }
  }
  </code></pre>
  <ol start="2">
  <li>provider.tf</li>
  </ol>
  <pre><code>provider &quot;aws&quot; {
    region = &quot;ap-east-1&quot;
    access_key = &quot;xxxx&quot;
    secret_key = &quot;xxxx/xxx+xxx&quot;
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/zuG5z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zuG5z.png" alt="error image is here" /></a></p>