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 #45

Open
mtrupehu opened this issue May 7, 2019 · 1 comment
Open

AssumeRoleTokenProviderNotSetError #45

mtrupehu opened this issue May 7, 2019 · 1 comment

Comments

@mtrupehu
Copy link

mtrupehu commented May 7, 2019

Describe the bug
My AWS profile has enabled MFA, When I ssue the following command, I get Authentication errors as below:

cw ls groups

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(...)
/Users/lucagrulla/go/pkg/mod/github.com/aws/aws-sdk-go@v1.14.17/aws/session/session.go:281
github.com/lucagrulla/cw/cloudwatch.New(0xc00005d3a0, 0xc00005d3b0, 0xc0000946e0, 0x0)
/Users/lucagrulla/Projects/cw/cloudwatch/client.go:34 +0x284
main.main()
/Users/lucagrulla/Projects/cw/main.go:176 +0x251

To Reproduce
Steps to reproduce the behavior:

  1. Which command
    cw ls groups
  2. Which flags/arguments are used
    ls

Expected behavior
Expected to list groups

Screenshots
N/A

Desktop (please complete the following information):

  • MacOS 10.14.2
  • Terminal (bash)

Additional context
N/A

@lucagrulla
Copy link
Owner

lucagrulla commented May 12, 2019

Thanks for filing this.

Which version of cw are you running? v3.2.0?

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