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

Add support of assume role with MFA #113

Open
the-demoss opened this issue Feb 14, 2022 · 0 comments
Open

Add support of assume role with MFA #113

the-demoss opened this issue Feb 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@the-demoss
Copy link

the-demoss commented Feb 14, 2022

In our organization access to AWS CLI is implemented with assuming role and MFA and when I try to run ec2-instance-selector --profile <profile_name> --vcpus 4 --memory 8 --region eu-central-1 for example it fails with:

panic: AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.

goroutine 1 [running]:
github.com/aws/aws-sdk-go/aws/session.Must(...)
	/go/pkg/mod/github.com/aws/[email protected]/aws/session/session.go:370
main.getRegionAndProfileAWSSession(0xc0003362b, 0xc00033627, 0xc00033627, 0xc00033627, 0xc00033061)
	/amazon-ec2-instance-selector/cmd/main.go:315 +0x790
main.main()
	/amazon-ec2-instance-selector/cmd/main.go:182 +0x148

It will be great to have this functionality.

@bwagner5 bwagner5 added the enhancement New feature or request label Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants