title: error configuring Terraform AWS Provider: failed to get shared config profile
body: <p>I am getting the error below using the Terraform AWS Provider when trying to run <code>terraform plan</code> this only happens when running on GitHub Actions (it works fine locally)</p>
  <blockquote>
  <p>error configuring Terraform AWS Provider: failed to get shared config profile</p>
  </blockquote>
  <pre><code>terraform {
    required_providers {
      aws = {
        source  = &quot;hashicorp/aws&quot;
        version = &quot;~&gt; 4.22&quot;
      }
    }
    required_version = &quot;&gt;= 1.1.7&quot;
  }
  </code></pre>
  <p>If I downgrade to <code>version = &quot;~&gt; 3.0&quot;</code> it fixes the problem. But I would like to upgrade to the latest version.</p>
  <p>Is there a way to make this run on CI?</p>