99designs / aws-vault

A vault for securely storing and accessing AWS credentials in development environments
MIT License
8.52k stars 820 forks source link

please assist I am new to AWS-Vault #1247

Open ab-hackitnow opened 5 months ago

ab-hackitnow commented 5 months ago

$ aws-vault exec UnfederatedAdministrator aws-vault: error: exec: Error getting temporary credentials: profile UnfederatedAdministrator: credentials missing $ aws-vault exec userone
aws-vault: error: exec: Error getting temporary credentials: profile userone: credentials missing

vagrant㉿packer-vmware-iso)-[~/workspace/securing-the-cloud-supplemental] └─$ aws sts get-caller-identity Unable to locate credentials. You can configure credentials by running "aws configure". not sure what am I doing wrong? I ma geeting Credential missing below:

┌──(vagrant㉿packer-vmware-iso)-[~/workspace/securing-the-cloud-supplemental] └─$ aws-vault exec UnfederatedAdministrator aws-vault: error: exec: Error getting temporary credentials: profile UnfederatedAdministrator: credentials missing

┌──(vagrant㉿packer-vmware-iso)-[~/workspace/securing-the-cloud-supplemental] └─$

aws-vault list
Profile Credentials Sessions
======= =========== ========
userone userone sts.GetSessionToken:23m25s

~/.aws.config file:

[default] region=us-west-2 output=json

[profile userone] mfa_serial=arn:aws:iam::258748242541:mfa/userone

[profile unfederatedadmin] role_session_name=userone source_profile=userone role_arn=arn:aws:iam::258748242541:role/UnfederatedAdministrator mfa_serial=arn:aws:iam::258748242541:mfa/userone

billysutomo commented 5 months ago

try add profile default aws-vault add default aws-vault will use profile default credentials for other role

za commented 1 week ago

Hi @ab-hackitnow do you still have issue?