awsp
is a tiny shell function to quickly switch AWS profiles based on AWS SSO account names. It uses your existing SSO session cache and sets the AWS_PROFILE
environment variable in your shell.
Given an account name (e.g., media-prod
), it:
- Locates your active AWS SSO session token.