Menu

Fixing "No Credentials Found" when using AWS SSO Profiles in Zsh
📰
0

Fixing "No Credentials Found" when using AWS SSO Profiles in Zsh

DEV Community·nareshipme·about 1 month ago
#SlI8xThf
#aws#zsh#devops#cli#profile#login
Reading 0:00
15s threshold

TL;DR: An AWS SSO login was successful, but subsequent AWS commands failed with "No credentials found" because the shell alias was pointing to a profile name that didn't match the configured credential block in ~/.aws/config . I wanted to automate my AWS authentication by creating an alias in my .zshrc to trigger the SSO login process. After running the command, the terminal reported Login successful , but any subsequent attempt to list S3 buckets or use the AWS CLI resulted in a credential error. The issue stemmed from a mismatch between how the profile was defined in ~/.aws/config and how I was calling it via the CLI.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More