Ravi Sir's Cards › AWS
Profile vs IAM role
This comparison card contrasts Profile and IAM role. Profile is described as laptop, ~/.aws files. IAM role is described as eC2, ECS, Lambda. The card pairs Profile with local development, and IAM role with anything in the cloud.
Read card text
What this card says
Where
Profile
Laptop, ~/.aws files.
IAM role
EC2, ECS, Lambda.
Key points
Long-lived keys on disk.
Temporary, auto-rotated.
Example
AWS_PROFILE=dev
Use when
Local development.
Anything in the cloud.