I am trying to embed access and secret key along with aws cli. e.g.
aws ec2 describe-instances --aws-access-key --aws-secret-key
I think the previous answers are correct, here is my response which is more like Danh response but also including multiple options and Windows too
export AWS_ACCESS_KEY_ID=your_key; export AWS_SECRET_ACCESS_KEY=your_secret; aws s3 ls
AWS_ACCESS_KEY_ID=your_key AWS_SECRET_ACCESS_KEY=your_secret aws s3 ls
$Env:AWS_ACCESS_KEY_ID="your_key"
$Env:AWS_SECRET_ACCESS_KEY="your_secret"
aws s3 ls
Full credit to great AWS document