⌨️CLAUDE_CODE_SKIP_AWS_CRED_CACHE
Also known as CLAUDE_CODE_SKIP_AWS_CRED_CACHE=1
Set to 1, it makes Claude Code look up AWS keys on every request.
Think of it like
It is like you check your pass at the gate each time, not just once a day.
Example
Jack's keys rotate every few minutes, and Claude Code kept using an old one. With this set, each request picks up the new key.
Why it matters
If your keys change often, a kept copy can go stale and requests start to fail.
Definition
Example code
bash
export CLAUDE_CODE_SKIP_AWS_CRED_CACHE=1
claudeCommon mistake
Key takeaways
- 1No kept copy. Fresh each time.
- 2For fast-changing keys. Rotating ones.
- 3Slower. One lookup per request.