-
Notifications
You must be signed in to change notification settings - Fork 87
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
Cannot use dotnet lambda with MFA enabled #240
Comments
MFA support was added in version 3.3.0 as per #31 (comment), as part of commit 1dbccff. This needs reproduction. |
Hi @madmox, Good afternoon. Somehow I'm unable to reproduce the issue. Below are the steps I followed:
My
It did prompt me for the MFA code (refer attached screenshot). Thanks, |
It looks like I messed up my
If I change my config file like this (merged both files in
Then it works OK. I don't know why my previous configuration was supported by the standard AWS CLI though. A few non-blocking issues remain:
|
Describe the bug
I have MFA enabled and required for my IAM user and assumable IAM role, and the appropriate config/credentials file for AWS CLI. I can successfully use the AWS CLI and the SAM CLI (meaning I am prompted for an MFA code and the commands succeed), but the
Amazon.Lambda.Tools
CLI commands fail to execute and do not even prompt me for an MFA token.Expected Behavior
dotnet lambda xxx
should prompt for the MFA token and successfully execute.Current Behavior
dotnet lambda xxx
does not prompt for the MFA token and fails with the following error:Reproduction Steps
AWS credentials file:
AWS config file:
IAM role permissions:
IAM role trust relationships:
Failing command:
Any
dotnet lambda
command involving an API call to AWS, such as:Targeted .NET platform
.NET 6
CLI extension version
amazon.lambda.tools 5.4.5 dotnet-lambda
Environment details (OS name and version, etc.)
Windows 11
The text was updated successfully, but these errors were encountered: