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.…