Skip to content

Assume an AWS IAM Role given the AWS profile ( ~/.aws/credentials ), Role ARN, and current MFA Token

Notifications You must be signed in to change notification settings

farrellit/shell-assume-aws-role

Repository files navigation

Usage

where dev is the profile name from ~/.aws/, arn:aws:iam::01234567890:role/... is the role of the arn, and 123456 is your current Session Token:

source assume_role.sh
assume dev arn:aws:iam::01234567890:role/... 123456

About

Assume an AWS IAM Role given the AWS profile ( ~/.aws/credentials ), Role ARN, and current MFA Token

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages