Intermediate Reading #aws #cli #cloud

☁️ Reading AWS CLI Error Messages

4 exercises — read real AWS CLI error output. Tell apart AccessDenied, missing credentials, ExpiredToken, and throttling — four failure stages that each need a different fix.

AWS CLI error anatomy
  • An error occurred (ErrorCode) when calling the OperationName operation: message is the standard shape
  • The ErrorCode (in parentheses) is the specific, machine-readable category — read it first
  • The OperationName tells you exactly which API call was attempted
  • "Unable to locate credentials" happens client-side, before any request reaches AWS
Talking about it out loud (Slack / stand-up)
  • "Getting AccessDenied on PutObject — looks like a permissions issue on my role, not the file."
  • "CLI can't find any credentials — I need to run aws configure or log in via SSO again."
  • "It's not a permissions problem, my session token's just expired — logging back in."
  • "We're getting throttled, not blocked — I'll add backoff so it stops hammering the API."
0 / 4 completed
1 / 4
☁️ aws s3 cp output — AccessDenied
{ex.passage}
The upload fails with (AccessDenied) ... Access Denied. What does this actually tell you — and what does it NOT tell you?