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

AssumeRoleTokenProviderNotSetError when using MFA #8

Closed
dtlhlbs opened this issue Feb 21, 2022 · 1 comment
Closed

AssumeRoleTokenProviderNotSetError when using MFA #8

dtlhlbs opened this issue Feb 21, 2022 · 1 comment

Comments

@dtlhlbs
Copy link

dtlhlbs commented Feb 21, 2022

We have MFA enabled so I have configured my AWS profile like:

[profile dev]
source_profile=default
role_arn=arn:aws:iam::987654321:role/MyRole
mfa_serial = arn:aws:iam::123456789:mfa/MyUser

When I run aws lightsail push-container-image --region ap-southeast-2 --service-name docs --label latest --image myorg/docs under this profile I get an error:

AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.
Command '['lightsailctl', '--plugin', '--input-stdin']' returned non-zero exit status 1.
@dtlhlbs
Copy link
Author

dtlhlbs commented Feb 21, 2022

@dtlhlbs dtlhlbs closed this as completed Feb 21, 2022
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

1 participant