title: Passing in access and secret keys through AWS CLI
body: <p>Due to certain enterprise limitations, I'm only able to access AWS through the command line, and I cannot set environment variables. I was wondering if there is any way to pass in my keys with the command in a manner like this:</p>
  
  <p><code>aws s3 cp &lt;file&gt; s3://testbucket --aws-access-key &lt;accesskey&gt; --aws-secret-key &lt;secretkey&gt;</code></p>
  
  <p>I noticed that <a href="https://stackoverflow.com/questions/29908036/passing-access-and-secret-key-aws-cli">this question</a> is fairly similar, although it seems that the answers are either not applicable to my situation or referencing the ec2din command, which I could not translate into copying files to s3. I just get the response <code>Unknown options: --aws-access-key,--aws-secret-key</code>.</p>