Run aws commands with mfa


There are a number of programs I use frequently that interact with AWS, such as aws-cli and test-kitchen. I haven’t found any programs that natively support multi-factor authentication with AWS. Thankfully most programs will check the right environment variables, but you have to do a song-and-dance with STS to set them up. I’ve just made a public a program called aws-mfa that I created for work to simplify this process. Enjoy!