Authenticate to AWS using Single Sign-On (SSO). Use when AWS CLI operations require SSO authentication or when SSO session has expired.
A skill to authenticate to AWS using Single Sign-On (SSO) for a specified profile.
Perform SSO authentication before executing AWS CLI operations. SSO sessions typically expire after 8-12 hours, requiring re-authentication.
profile: AWS CLI profile name configured for SSO (default: defined by project, e.g., web-hosting)aws sso login command with the specified profile# Login with SSO using specified profile
aws sso login --profile <profile-name>
web-hosting) in a separate project guide such as .github/skills/README.md or a skill configuration file.After successful authentication:
After executing this skill, AWS CLI commands with the profile become available:
# Verify authentication
aws sts get-caller-identity --profile web-hosting
# Assume a role (often used after SSO login)
aws sts assume-role --role-arn <role-arn> --role-session-name <session-name> --profile web-hosting
~/.aws/config for the specified profile--no-browser flag and manually opening the provided URLassume-cloudformation-role skill if role assumption requires SSO authentication