Ravi Sir's Cards › AWS
Role profiles
This revision card explains Role profiles. It starts from the need that exporting keys by hand is slow and they expire. It describes role_arn + source_profile make the CLI assume and refresh. The how-to section covers how to add mfa_serial to ask for an MFA code. An example on the card is use: aws s3 ls --profile prod-admin.
Read card text
What this card says
Why do we need it?
Exporting keys by hand is slow and they expire.
What is it?
role_arn + source_profile make the CLI assume and refresh.
[profile prod-admin]
How to do it
Add mfa_serial to ask for an MFA code.
Example
Use: aws s3 ls --profile prod-admin.