Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please assist I am new to AWS-Vault #1247

Open
niaziabdul opened this issue Jun 8, 2024 · 1 comment
Open

please assist I am new to AWS-Vault #1247

niaziabdul opened this issue Jun 8, 2024 · 1 comment

Comments

@niaziabdul
Copy link

$ 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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants