Marketplace aws-sso-login
Authenticate to AWS using Single Sign-On (SSO). Use when AWS CLI operations require SSO authentication or when SSO session has expired.
install
source · Clone the upstream repo
git clone https://github.com/aiskillstore/marketplace
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/aiskillstore/marketplace "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/daisuke897/aws-sso-login" ~/.claude/skills/aiskillstore-marketplace-aws-sso-login && rm -rf "$T"
manifest:
skills/daisuke897/aws-sso-login/SKILL.mdsource content
AWS SSO Login
A skill to authenticate to AWS using Single Sign-On (SSO) for a specified profile.
Purpose
Perform SSO authentication before executing AWS CLI operations. SSO sessions typically expire after 8-12 hours, requiring re-authentication.
Input Parameters
: AWS CLI profile name configured for SSO (default: defined by project, e.g.,profile
)web-hosting- If the profile name is not known/available from project docs or prior context, ask the user which AWS CLI profile to use before running this skill.
Execution Steps
- Execute
command with the specified profileaws sso login - Open browser automatically (or provide a URL to open manually)
- Complete authentication in the browser
- Confirm successful authentication
Command Example
# Login with SSO using specified profile aws sso login --profile <profile-name>
Project Configuration
- Document the default profile name (e.g.,
) in a separate project guide such asweb-hosting
or a skill configuration file..github/skills/README.md - Refer to that document when invoking this Skill so the same definition can be reused across repositories without editing the Skill itself.
Output
After successful authentication:
- SSO session is established and cached locally
- AWS CLI commands can be executed using the specified profile
- Session remains valid for the configured duration (typically 8-12 hours)
Usage Examples
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
Prerequisites
- AWS CLI v2 installed (SSO support requires v2 or later)
- SSO configuration set up in
for the specified profile~/.aws/config - Web browser available for authentication
- Network access to the SSO authentication endpoint
Notes
- SSO sessions expire after a configured duration (typically 8-12 hours)
- When the session expires, re-execute this skill to re-authenticate
- Browser-based authentication is required; this cannot be fully automated
- For headless environments, consider using
flag and manually opening the provided URL--no-browser - This skill should be executed before the
skill if role assumption requires SSO authenticationassume-cloudformation-role