You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an alias aws_otp that uses oathtool to get an MFA code. It would be useful to be able to use that instead of manually typing the code.
Adding a command-line parameter to supply the code would help.
(I currently use a shell function to set the env vars, assume-role does seem like a nice alternative though....)
I tried this with sshpass, which did not work (I see that stdin might work though) (I use a similar sshpass for the AWS CLI to get it pre-populate its credential cache.
I have an alias
aws_otp
that uses oathtool to get an MFA code. It would be useful to be able to use that instead of manually typing the code.Adding a command-line parameter to supply the code would help.
(I currently use a shell function to set the env vars,
assume-role
does seem like a nice alternative though....)I tried this with sshpass, which did not work (I see that stdin might work though) (I use a similar sshpass for the AWS CLI to get it pre-populate its credential cache.
My session caching loop (demonstrating sshpass with the AWS CLI):
My current MFA function: (It takes MFA code as a parameter) (since this project seems potentially abandoned)
To use:
The text was updated successfully, but these errors were encountered: