Closed jtsoi closed 1 year ago
I can work around the issue for the moment, but it would be good to know if this is a bug or as intended.
I'm also running into this issue. Could you share how you are working around this? I just downgraded to v6 for the moment.
@sajoku, The workaround is not very elegant 😄
Instead of AWS_ROLE_ARN="..." aws-vault exec main -- aws s3 ls
I added all the needed roles into ~/.aws/config
like this:
[profile main]
mfa_serial=arn:aws:iam::[REDACTED]:mfa/jt
[profile main-sandbox-role]
source_profile=main
mfa_serial=arn:aws:iam::[REDACTED]:mfa/jt
role_arn=arn:aws:iam::[REDACTED]:role/SandboxAdminRole
And the new call is then:
aws-vault exec main-sandbox-role -- aws s3 ls
This seems to work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
.aws/config
(redacted if necessary)aws-vault --debug
(redacted if necessary)Problem
Hi, I was using
AWS_ROLE_ARN=<to-role> aws-vault exec <from-profile> -- <cmd>
as outlined in #423, this is working in 6.6.2, but no longer works in 7.0.0, possibly a regression due to new MFA features? I can work around the issue for the moment, but it would be good to know if this is a bug or as intended.v7.0.0 debug - not working
AWS_ROLE_ARN="arn:aws:iam::[REDACTED]:role/SandboxAdminRole" aws-vault exec jt -- aws s3 ls
v6.6.2 debug - working
AWS_ROLE_ARN="arn:aws:iam::[REDACTED]:role/SandboxAdminRole" aws-vault exec jt -- aws s3 ls
AWS config file
.aws/config
(redacted)