Loading...
Loading...
Fast, zero-config AWS SSO login helper that discovers accounts and roles, configures AWS profiles, and auto-configures EKS Kubernetes contexts. Use when authenticating with AWS SSO, switching between AWS accounts or roles, setting up AWS profiles for CLI usage, configuring Kubernetes contexts for EKS clusters, or exporting AWS_PROFILE for tools that support named profiles.
npx skill4agent add ericcecchi/aws-login aws-login-cli# Two positional args: <account> <role>
aws-login myaccount admin
aws-login 123456789012 ReadOnly
# Or with flags
aws-login --account myaccount --role adminaws-login --profile devaws-logineval "$(aws-login --print-env myaccount admin)"eval "$(aws-login --set-profile myaccount admin)"aws-login doctoraws-login --version| Flag | Description |
|---|---|
| Account name or ID (alternative to first positional arg) |
| Role name (alternative to second positional arg) |
| Use a specific AWS profile name instead of auto-generated |
| AWS SSO session name |
| AWS region override |
| Switch to this context and save as account default |
| Skip Kubernetes context switching |
| Fail instead of prompting (for CI/scripts) |
| Print full credential export statements to stdout |
| Print |
| Validate and repair AWS/Kubernetes config files |
| Print version |
aws-login <account> [role]--account--role--non-interactiveaws-login --non-interactive --account 123456789012 --role adminaws-login --non-interactive 123456789012 admin--profile<account-name>-<role>prod-adminaws-login --install.bashrc.zshrc.zprofileconfig.fishaws-loginAWS_PROFILEevalaws-login --uninstallaws-login~/.aws-login/kube-prefs.json--non-interactive--kube-context <name>--no-kube--kube-context~/.aws-login/kube-prefs.jsonawskubectl# Log in to a specific account and role
aws-login --non-interactive --account prod --role admin --no-kube
# Log in and set AWS_PROFILE in the environment
eval "$(aws-login --set-profile --non-interactive --account 123456789012 --role ReadOnly)"
# Log in and export full credentials
eval "$(aws-login --print-env --non-interactive --account staging --role developer)"
# Use a named profile
aws-login --non-interactive --profile my-dev-profile
# Check health
aws-login doctor