Running Jet Commands with AWS MFA STS fails


#1

If I’m set up for using MFA STS on the command line, when I run a jets command like generate scaffold, I get an error

/Users/rberger/.rvm/gems/ruby-2.6.1/gems/aws-sdk-core-3.46.2/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call': MultiFactorAuthentication failed, must provide both MFA serial number and one time pass code. (Aws::STS::Errors::AccessDenied)

If I do a regular AWS CLI command in the same shell, it works fine.

Is there a way to pass in the info or otherwise make the jets command work with MFA?


#2

Interesting. Not currently. This should be added though. Feel free to open up a GitHub issue for this. Please fill out the issue template :ok_hand:

Clues on how to achieve it: https://aws.amazon.com/premiumsupport/knowledge-center/authenticate-mfa-cli/