Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

AWS SSO CLI

$ aws-sso Community Med Risk
Synfinatic · Cloud & Infra · GPL-3.0 · macos / linux / windows

AWS SSO CLI (aws-sso) secures multi-account AWS IAM Identity Center (SSO) workflows without storing static IAM keys on disk. It supports aws-sso exec scoped subshells, AWS CLI credential_process JSON integration, and cached SSO sessions.

FCRS-1.0 Score
78 /100
Good
Medium Confidence
Zero-Friction Install
brew install aws-sso-cli
CLI vs MCP Decision CLI Only

aws-sso runs locally to broker temporary AWS STS credentials for downstream CLI commands; credential brokering cannot be delegated to a remote MCP.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Works non-interactively via aws-sso exec -p <profile> and credential_process JSON once an SSO session is active, though expired OAuth tokens require browser login.

  • Supports aws-sso exec -p <profile> and aws-sso process JSON for AWS CLI
  • Browser OAuth login required when Identity Center token expires
Trust & Safety 20 / 25

Eliminates long-lived static AWS_SECRET_ACCESS_KEY files in favor of short-lived STS tokens and OS-keychain-encrypted caches.

  • Short-lived STS tokens scoped per subprocess with aws-sso exec
Setup & Portability 13 / 15

Single Go binary via Homebrew and GitHub Releases across macOS, Linux, and Windows, though initial config.yaml setup is needed.

  • Available via brew install aws-sso-cli
Utility & Efficiency 12 / 15

Cleanly bridges AWS IAM Identity Center with multi-account CLI/agent workflows and credential_process.

  • Auto-generates ~/.aws/config profiles via aws-sso config-profiles
Maintenance & Lineage 7 / 10

Well-maintained community Go project (synfinatic/aws-sso-cli) under GPL-3.0.

  • Active open-source maintenance under GPL-3.0
Docs & Verifiability 8 / 10

Detailed GitHub docs covering exec, process, list, and config.yaml schemas.

  • Comprehensive quickstart and command docs in repository

Security, Auth & Guardrails

Auth Modes
OAuth Browser Config File OS Keychain
Credential Storage

Stores SSO configuration in ~/.aws-sso/config.yaml and caches encrypted OAuth/STS tokens in OS keychain or local secure store.

Side Effects
Read-Only Local Write
Cost & Quotas

GPL-3.0 open-source CLI; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# AWS SSO CLI Agent Rules
- Use `aws-sso exec -p <readonly-profile> -- <cmd>` so temporary credentials stay scoped to one command.
- Never run `aws-sso eval` or `aws-sso login` if the SSO browser session is expired—ask the user to authenticate.

Agent-Ready Command Recipes

Safe Read-Only Queries

List configured AWS SSO accounts and roles
aws-sso list --fields AccountId,AccountName,RoleName

Lists cached IAM Identity Center account/role mappings using explicit fields.

Execute a read-only AWS command with an assumed SSO role
aws-sso exec -p my-readonly-profile -- aws sts get-caller-identity --output json

Injects temporary STS env vars into a single subprocess without modifying global shell state.

Strengths for Agents

  • + aws-sso exec -p <profile> isolates temporary STS credentials to a single child command.
  • + Eliminates static IAM access keys on disk using short-lived Identity Center sessions.
  • + Supports credential_process JSON output for transparent aws CLI integration.

Caveats & Pitfalls

  • ! When the SSO OAuth session expires, agents cannot complete browser MFA/login autonomously.
  • ! GPL-3.0 license and initial ~/.aws-sso/config.yaml setup add minor onboarding friction.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI