--- 1. Old way: a static access key key id prefix: AKIA (no expiry) [ OK ] static key lists the bucket --- 2. First try at switching: assume a role [FAIL] assume app-role (user has no sts:AssumeRole permission) -> AccessDenied: User: arn:aws:iam::123456789012:user/app-user is not authorized to perform: sts:AssumeRole --- 3. After adding sts:AssumeRole to the user's policy key id prefix: ASIA | session token present: True | expires: 11:16:34 UTC [ OK ] temporary creds list the bucket --- 4. More things that broke [FAIL] temp key + secret WITHOUT the session token -> InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records. [FAIL] assumed role that has no S3 permissions -> AccessDenied: Access Denied