Modify files under ~/.aws
directory
Use it as you would normally use aws profiles for cli
# Replace ${ASSUME_ROLE_ARN} with role arn that you want to assume | |
# Replace ${USER_ARN} with your user | |
[profile user] | |
region=eu-west-1 | |
[profile env-role] | |
role_arn = ${ASSUME_ROLE_ARN} | |
source_profile = user | |
region = eu-west-1 | |
mfa_serial = ${USER_ARN} |
[user] | |
aws_access_key_id=${REPLACE_ME} | |
aws_secret_access_key=${REPLACE_ME} |