Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aws-vault credentials missing

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?

like image 864
ai.jennetta Avatar asked Jan 16 '20 18:01

ai.jennetta


People also ask

Where does AWS vault store credentials?

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.

How do you fix unable to locate credentials you can configure credentials by running AWS configure?

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.

Where is AWS vault config file?

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.


2 Answers

solved - never did aws-vault add default. It works now.

like image 140
ai.jennetta Avatar answered Oct 17 '22 16:10

ai.jennetta


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

like image 37
Hany Sakr Avatar answered Oct 17 '22 14:10

Hany Sakr