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
You can set credentials with:
aws configure set aws_access_key_id
aws configure set aws_secret_access_key
Verify your credentials with:
aws sts get-caller-identity
For more information on set command:
aws configure set help
General pattern is:
aws help
aws help
Note: Before overriding your credentials, you may want to keep a copy of it:
aws configure get aws_access_key_id
aws configure get aws_secret_access_key