title: AWS Credentials in a Docker Desktop deployment
body: <p>I am working on a .net 6.0 application that will run in an EKS cluster, but I am developing using Docker Desktop and Kubernetes. Whilst I can pass in the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, etc via the Helm Chart as Environment variables the issue I am facing is that I keep seeing <strong>The security token included in the request is expired</strong>, I can update the values and redeploy but clearly that is a pain to do.</p>
  <p>When this is running in EKS it will use IAM Roles etc so isn't an issue but just wondered if anyone has a solution for doing this locally. If I run up the code in VS rather than Docker it picks up the credentials from the aws credentials file and runs (even though I haven't updated the token).</p>
  <p><a href="https://i.stack.imgur.com/E5eXD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E5eXD.png" alt="enter image description here" /></a></p>
  <p>In the code snippet above the environment var is set to <strong>local</strong> when running in my Docker Desktop Kubernetes.</p>
  <p>Any ideas if there is a solution for this?</p>