Meltwater just released awsudo, an npm package designed to make assuming AWS IAM roles on the command line trivial.
Assuming an AWS IAM role on the command line is not a simple process, and we wanted it to be a human-readable one-liner. Meltwater’s awsudo achieves this with a straightforward command that you can put in front of any awscli operation.
There are other packages out there that accomplish similar goals, but in this post we will discuss why we chose to roll our own.