title: Packer with AWS SSO Profile
body: <p>I'm trying to use packer with the &quot;profile&quot; variable (without needing to supply static access keys) which I am configuring using the <code>aws configure sso</code> command - but when trying to run the packer command I get the error:</p>
  <blockquote>
  <p>Error: NoCredentialProviders: no valid providers in chain. Deprecated.
  For verbose messaging see aws.Config.CredentialsChainVerboseErrors</p>
  </blockquote>
  <p>in my packer variables.json I have <code>&quot;aws_profile&quot;: &quot;sandbox&quot;</code> and in my environment.json I have</p>
  <pre><code>&quot;builders&quot;: [
          {
              &quot;type&quot;: &quot;amazon-ebs&quot;,
              &quot;profile&quot;: &quot;{{user `aws_profile`}}&quot;
  </code></pre>
  <p>Am I missing something or is it not possible to do this?</p>