How are people managing their AWS creds when running agent-deck? #44
Replies: 1 comment
-
|
Hey @jamisonbryant, good question! This is a common challenge with tmux-based workflows. The Core IssueAWS credentials work via environment variables OR files ( OptionsOption 1: Pre-authenticate before starting agent-deckawsume <role>
agent-deckNew sessions created after auth will inherit the environment. Simple but requires planning ahead. Option 2: Use awsume's credential file modeConfigure awsume to write to awsume <role> --credentials-file
# or set as default in ~/.awsume/config.yaml:
# credentials_file: trueFile-based credentials work in ALL terminals, regardless of when they were started. Option 3: Detach → Auth → ReattachWhen you need to re-auth mid-session:
The auth won't propagate to the existing Claude process, but you can restart the session ( Option 4: Use AWS SSO login directlyIf your setup supports it: aws sso login --profile <profile>This writes to Option 5: Split pane for auth (tmux trick)While attached to a session:
The Claude session can use file-based credentials immediately. My RecommendationOption 2 (credential file mode) is the cleanest long-term solution. Once you configure awsume to write to the credentials file, auth "just works" everywhere. Hope that helps! Let me know if you have questions about any of these approaches. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know there's a zillion ways to log into AWS, my team is using aws-sso-util and awsume. I run aws-sso-util to log into the SSO, then awsume -l to list out the roles I have access to, then finally I pick one and I'm authenticated.
In order for Claude (or any AI) to send commands like 'aws s3 ls' they have to have credentials. Normally I would Ctrl+Z Claude, log in, and 'fg' to resume, but that was before I was using agent-deck.
Do I keep using my Ctrl+Z trick, or is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions