I am trying to get aws-vault working on my new computer.
I have a config file that looks like:
[profile default]
region=eu-west-1
output=json
mfa_serial = %%%
And a credentials file
[default]
aws_access_key_id = %%%
aws_secret_access_key = %%%
but when I run
aws-vault exec default
I get the error
aws-vault: error: exec: Error getting temporary credentials: profile default: credentials missing
any ideas of how to fix this problem?
AWS vault stores IAM credentials in the operating system's secure keystore and then generates temporary credentials from those to expose to the shell and applications.
To resolve this issue, make sure that your AWS credentials are correctly configured in the AWS CLI. Note: If you still receive an error when running an AWS CLI command, make sure that you're using the most recent AWS CLI version.
AWS config file aws-vault uses your ~/. aws/config to load AWS config. This should work identically to the config specified by the aws-cli docs.
solved - never did aws-vault add default
. It works now.
There shouldn't be any credentials saved on plain text!
Anyway, I closed the current window shell and re-opened a new one, then it worked again normally on PowerShell
aws-vault add NAME
aws-vault exec NAME --duration=12h -- cmd.exe
Just be sure you pasted correctly the credentials onto the shell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With