ai.jennetta
ai.jennetta

Reputation: 1184

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?

Upvotes: 20

Views: 32611

Answers (3)

Hany Sakr
Hany Sakr

Reputation: 2939

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

Upvotes: 2

dimizuno
dimizuno

Reputation: 61

I think what actually fixed your problem was to remove the "profile" from the [profile default] line in your config file. It's just [default] like in your credentials file. This is probably what the aws-vault add default command did for you.

Upvotes: 0

ai.jennetta
ai.jennetta

Reputation: 1184

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

Upvotes: 32

Related Questions