Small CLI utility to assume a role in AWS
Using this utility, a command can be run using an assumed role, as opposed to your default profile. The role assumption is not persisted to your shell, so subsequent requests must also use this utility.
Currently, the only way to install the utility is from source. It requires you to have go installed on your system.
go get github.com/ryanfrench/aws-auth
aws-auth --role-arn=role [--duration=seconds] [command]
This will assume role
and then run command
using that role.
Parameter | Description | Required | Default |
---|---|---|---|
role-arn | The role to assume | Yes | |
duration | The duration, in seconds, before the token will expire | No | 3600 |
aws-auth --help