aws-runas A friendly way to assume roles in AWS View on Github View on Github

IAM Permissions

When using aws-runas with user accounts configured in AWS IAM, the user will need permission to call the following AWS APIs:

The following API calls are used by the -l option to find assumable roles for the calling user:

Sample IAM Policy

This sample IAM policy provides you with a starting point for granting IAM users the ability to use aws-runas effectively. One important omission is the permissions to call the sts:AssumeRole action, since that operation is highly-privileged it should be created as needed outside this policy, restricting access to only the necessary IAM roles. Also consider removing the ‘*’ character in the account number field of the Resource ARN values, and replace with your specific AWS account number (The Resource: * configuration for the ListMFA permission is required as part of the AWS API spec, and should not be changed)