title: How to run AWS SDK with credentials from variables?
body: <p>I used environment variables before and it worked fine.</p>
  
  <p>Now I am migrating my config variables into a single file and I have AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID variables containing respective values that are loaded from this file.</p>
  
  <p>I tried this code but receiving an error:</p>
  
  <pre><code>creds := credentials.NewStaticCredentials("123", conf.AWS_SECRET_ACCESS_KEY, conf.AWS_ACCESS_KEY_ID)
  sess, err := session.NewSession(&amp;aws.Config{Credentials: creds})
  </code></pre>
  
  <p>Here is the error</p>
  
  <blockquote>
    <p>InvalidClientTokenId: The security token included in the request is invalid.</p>
  </blockquote>
  
  <p>How do I properly inject my keys into the aws sdk calls?</p>