/atmos:atmos-authfrom atmos
Manages authentication and identity for Atmos: SSO, SAML, OIDC, GCP, AWS credential_process, keyring, identity chaining, and integrations like ECR, EKS, ACR, AKS, and GitHub STS.
Ships in atmos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Atmos Auth provides a unified authentication layer for multiple cloud providers. It consolidates AWS SSO, SAML,
OIDC, GitHub Actions, GCP Workload Identity Federation, Azure, Atmos Pro, and static credentials into a single configuration
model in atmos.yaml. Credentials are managed through providers (upstream authentication systems) and identities
(the roles and accounts obtained from those providers), with support for identity chaining, keyring-based
credential storage, and integrations like ECR, EKS, ACR, AKS, and GitHub STS.
The auth system has four layers configured under the auth: key in atmos.yaml:
auth:
logs:
level: Info # Debug, Info, Warn, Error
file: /path/to/auth.log # Optional log file
keyring:
type: system # system, file, or memory
providers:
<name>:
kind: <provider-kind>
# Provider-specific fields
identities:
<name>:
kind: <identity-kind>
# Identity-specific fields
integrations:
<name>:
kind: aws/ecr
# Integration-specific fields
| Need | Load |
|---|---|
| Atmos Pro setup, uploads, workflow dispatch, drift detection | atmos-pro |
| Private GitHub remote imports and component source | atmos-imports |
| Native CI using OIDC | atmos-ci |
| GitOps repositories and signed commits | atmos-git |
The most common provider for AWS organizations. Requires kind, region, and start_url.
auth:
providers:
company-sso:
kind: aws/iam-identity-center
region: us-east-1
start_url: https://company.awsapps.com/start
auto_provision_identities: true # Auto-discover accounts and permission sets
session:
duration: 4h
console:
session_duration: 12h # Web console session (max 12h)
When auto_provision_identities: true, Atmos queries sso:ListAccounts and sso:ListAccountRoles during
login to automatically create identities for all assigned permission sets.
For SAML-based IdPs (Okta, Google Apps, ADFS). The next identity in the chain must be aws/assume-role.
auth:
providers:
okta-saml:
kind: aws/saml
region: us-east-1
url: https://company.okta.com/app/amazon_aws/abc123/sso/saml
driver: Browser # Browser, GoogleApps, Okta, or ADFS
For CI/CD pipelines in GitHub Actions. Requires id-token: write permission in the workflow.
Use this through a CI profile selected with ATMOS_PROFILE.
auth:
providers:
github-oidc:
kind: github/oidc
region: us-east-1
spec:
audience: sts.amazonaws.com # Required: match the cloud trust policy audience
The cloud IAM trust policy must constrain GitHub OIDC sub claims to the intended repository
and branch or GitHub environment, for example repo:ORG/REPO:ref:refs/heads/main or
repo:ORG/REPO:environment:prod.
Use kind: atmos/pro when the Atmos CLI needs to authenticate to Atmos Pro, including
github/sts token minting.
auth:
providers:
atmos-pro:
kind: atmos/pro
spec:
workspace_id: !env ATMOS_PRO_WORKSPACE_ID
identities:
atmos-pro:
kind: atmos/pro
via:
provider: atmos-pro
In GitHub Actions, this uses the runner OIDC token. Grant permissions.id-token: write.
For local development using existing gcloud authentication. Requires gcloud auth application-default login.
auth:
providers:
gcp-adc:
kind: gcp/adc
spec:
project_id: my-gcp-project # Optional, defaults to gcloud config
region: us-central1 # Optional
scopes:
- https://www.googleapis.com/auth/cloud-platform
For CI/CD using OIDC tokens. In GitHub Actions, token_source is auto-detected from environment variables.
auth:
providers:
gcp-wif:
kind: gcp/workload-identity-federation
spec:
project_id: my-gcp-project
project_number: "123456789012"
workload_identity_pool_id: github-pool
workload_identity_provider_id: github-provider
service_account_email: [email protected]
For non-GitHub environments, configure token_source explicitly with type (url, file, or environment),
the source location, audience, and allowed_hosts.
Maps to an SSO permission set on a specific account. Use principal.account.name (resolved via SSO) or
principal.account.id (direct).
auth:
identities:
dev-admin:
kind: aws/permission-set
default: true
via:
provider: company-sso
principal:
name: AdminAccess
account:
name: development
Assumes an IAM role, either directly from a provider or chained from another identity.
auth:
identities:
prod-admin:
kind: aws/assume-role
via:
identity: base-admin # Chain from another identity
principal:
assume_role: arn:aws:iam::999999999999:role/ProductionAdmin
session_name: atmos-prod # Optional, for CloudTrail auditing
Centralized root access in AWS Organizations using sts:AssumeRoot (kind: aws/assume-root, 15-minute
sessions). See references/providers-and-identities.md.
Static IAM user credentials for emergency access. Use !env to reference environment variables.
auth:
identities:
emergency:
kind: aws/user
credentials:
access_key_id: !env EMERGENCY_AWS_ACCESS_KEY_ID
secret_access_key: !env EMERGENCY_AWS_SECRET_ACCESS_KEY
region: us-east-1
mfa_arn: arn:aws:iam::123456789012:mfa/username # Optional MFA
Passes through credentials the environment already provides (IRSA, EC2 instance profile, ECS task role,
or a profile selected with AWS_PROFILE) using the AWS SDK default credential chain. It can be the base
of an aws/assume-role chain.
auth:
identities:
pod-base:
kind: aws/ambient
principal:
region: us-east-1 # Optional
Runs an existing external helper (Okta CLI, aws-sso-cli, aws-vault, Granted, a corporate SAML tool)
that prints AWS credential_process JSON, and uses the credentials as returned. No STS call, no MFA
prompt from Atmos. Cached (never in the keyring) while at least 15 minutes remain. Standalone (no via); chain aws/assume-role
from it.
auth:
identities:
corp-base:
kind: aws/credential-process
credentials:
credential_process: corp-credential-helper --account=prod
region: us-east-1 # Optional
Choosing a kind: aws/user for IAM user access keys, aws/ambient for credentials already in the
environment, aws/credential-process for a command that prints credentials. Details in
references/aws-credential-process.md.
aws/assume-root, azure/subscription, gcp/service-account, and gcp/project are
configured in references/providers-and-identities.md.Chains can be arbitrarily deep: provider -> identity -> identity -> ... -> identity. Use via.provider to
start from a provider or via.identity to chain from another identity. They are mutually exclusive. Circular
dependencies are detected and rejected.
auth:
identities:
base-admin:
kind: aws/permission-set
via:
provider: company-sso
principal:
name: AdminAccess
account:
name: core-identity
prod-admin:
kind: aws/assume-role
via:
identity: base-admin
principal:
assume_role: arn:aws:iam::999999999999:role/ProductionAdmin
prod-readonly:
kind: aws/assume-role
via:
identity: prod-admin
principal:
assume_role: arn:aws:iam::999999999999:role/ReadOnlyAccess
| Type | Persistence | Security | Use Case |
|---|---|---|---|
system | Yes | High (OS-managed) | Interactive workstations (Keychain, GNOME Keyring, Windows Credential Manager) |
file | Yes | Medium (AES-256 encrypted) | Headless servers, Docker containers, CI/CD |
memory | No | Low (in-process) | Testing, temporary sessions |
File keyring password resolution: ATMOS_KEYRING_PASSWORD env var, then interactive prompt, then error.
| Command | Purpose |
|---|---|
atmos auth login [--identity <name>] | Authenticate with SSO/SAML/OIDC/static credentials |
atmos auth whoami [--identity <name>] | Show current authentication status |
atmos auth validate [--stack <stack> [--component <component>]] [--verbose] | Validate global auth, or every selected concrete component’s merged auth |
atmos auth shell [--identity <name>] | Launch interactive shell with credentials pre-configured |
atmos auth exec [--identity <name>] -- <cmd> | Execute a single command with identity credentials |
atmos auth env [--format bash|json|dotenv|env|github|credential-process] | Export credentials as environment variables, or AWS process-credential JSON |
atmos aws credential-process --identity=<name> [--min-validity=15m] | Print AWS credentials for an identity in credential_process format |
atmos auth console [--destination <url>] | Open cloud provider web console in browser |
atmos auth list [--format table|tree|json|yaml|graphviz|mermaid] | List providers and identities |
atmos aws ecr login [integration] | Login to AWS ECR registries |
atmos auth logout [identity] [--all] [--provider] | Clear cached credentials |
Most commands accepting --identity support three modes: with value (use that identity), without value
(interactive selector), or omitted (use default or prompt). The -i alias works for all. The exception
is atmos aws credential-process (and atmos auth env --format=credential-process), which never
prompts: it needs --identity=<name>, ATMOS_IDENTITY, or exactly one default identity.
Add a profile whose credential_process calls Atmos so aws, boto3, and other SDK tools work from any
directory:
[profile app-sandbox-1]
credential_process = atmos --chdir=/path/to/infrastructure aws credential-process --identity=app-sandbox-1
The AWS CLI captures stderr, so Atmos cannot prompt. If an SSO session has expired, the command fails
fast: run atmos auth login --identity=app-sandbox-1 first. For identities defined in an Atmos profile,
add --profile=<name> to the credential_process line. Recipes and troubleshooting: references/aws-credential-process.md.
Disable Atmos-managed auth to use native cloud provider credentials:
atmos terraform plan mycomponent --stack=dev --identity=false
Or:
export ATMOS_IDENTITY=false
Recognized disable values: false, 0, no, off (case-insensitive).
jobs:
deploy:
permissions:
id-token: write
contents: read
env:
ATMOS_PROFILE: github
steps:
- uses: actions/checkout@v6
- run: atmos terraform deploy mycomponent -s prod
For AWS OIDC, configure github/oidc provider with aws/assume-role identity. For GCP WIF, configure
gcp/workload-identity-federation provider -- token_source is auto-detected in GitHub Actions.
Do not add a routine atmos auth login step to non-interactive OIDC workflows; Atmos exchanges
the OIDC token when the command runs.
When the CI platform provides credentials natively:
env:
ATMOS_IDENTITY: false
run: atmos terraform apply mycomponent --stack=prod
Use Atmos profiles to swap provider and identity configurations while keeping names consistent. For profile directory layout, activation, and merge behavior, load atmos-profiles:
atmos --profile developer terraform plan myapp -s dev
ATMOS_PROFILE=ci atmos terraform apply myapp -s prod
Keep this skill focused on the auth sections inside a profile, such as providers, identities, and keyring settings.
Registry login (aws/ecr, azure/acr) and kubeconfig provisioning (aws/eks, azure/aks)
auto-trigger on identity login when auto_provision: true (default). spec.registry and
spec.cluster are single structs shared across both clouds — each integration's kind picks
which fields matter (see the per-cloud references below):
auth:
integrations:
dev/ecr: { kind: aws/ecr, via: { identity: dev-admin }, spec: { registry: { account_id: "123456789012", region: us-east-2 } } }
dev/acr: { kind: azure/acr, via: { identity: azure-dev }, spec: { registry: { name: myregistry } } }
dev/eks: { kind: aws/eks, via: { identity: dev-admin }, spec: { cluster: { name: dev-cluster, region: us-east-2 } } }
dev/aks: { kind: azure/aks, via: { identity: azure-dev }, spec: { cluster: { name: dev-cluster, resource_group: dev-rg } } }
Integration failures are non-blocking during atmos auth login; retry the per-integration login/update command.
Command details — AWS: atmos-aws-ecr, atmos-aws-eks; Azure: references/azure-acr-integration.md, references/azure-aks-integration.md.
Use kind: github/sts to mint short-lived, least-privilege GitHub App tokens through Atmos Pro.
This is the preferred CI path for private GitHub vendoring, component source:, remote import:,
Terraform private modules, atmos git, and other Git subprocesses.
auth:
providers:
atmos-pro:
kind: atmos/pro
spec:
workspace_id: !env ATMOS_PRO_WORKSPACE_ID
identities:
atmos-pro:
kind: atmos/pro
via:
provider: atmos-pro
integrations:
github-sts:
kind: github/sts
via:
provider: atmos-pro
spec:
auto_provision: true
repos: [acme/modules]
policy_name: default
git_config_mode: env
revoke_on_exit: true
token_env: ATMOS_PRO_GITHUB_TOKEN
In CI, github/sts can auto-provision lazily before the first private remote read when
atmos/pro plus github/sts are configured and auto_provision is not disabled. The same minted
credentials cover atmos vendor pull, remote import:, component source:, private Terraform
module fetches, and managed Git operations. ATMOS_PRO_GITHUB_TOKEN is preferred for Atmos-native
Git reads ahead of ATMOS_GITHUB_TOKEN and GITHUB_TOKEN.
| Variable | Purpose |
|---|---|
ATMOS_IDENTITY | Default identity name, or false to disable auth |
ATMOS_KEYRING_TYPE | Override keyring backend (system, file, memory) |
ATMOS_KEYRING_PASSWORD | Password for file keyring |
ATMOS_XDG_CONFIG_HOME | Override config directory for AWS files |
ATMOS_XDG_DATA_HOME | Override data directory for file keyring |
ATMOS_PRO_WORKSPACE_ID | Atmos Pro workspace ID for atmos/pro |
ATMOS_PRO_BASE_URL | Override Atmos Pro base URL |
ATMOS_PRO_GITHUB_TOKEN | Preferred token for Atmos-native Git reads minted by github/sts |
!env VAR_NAME for sensitive values.atmos auth validate. If a stack supplies an identity’s principal, use atmos auth validate --stack <stack> (optionally --component <component>). Scoped validation is static: unresolved auth templates/functions fail without being executed; abstract components are excluded and empty selections fail.atmos auth logout.azure/aks integration: atmos azure aks update-kubeconfig / token (kubeconfig without az/kubelogin)azure/acr integration: atmos azure acr login (Docker login without az)aws/credential-process identity and atmos aws credential-process command: recipes, helpers, troubleshootingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
atmos, authentication, identity-management, aws-sso, saml, oidc, keyring
npx claudepluginhub cloudposse/atmos --plugin atmos58 skills in this plugin
/atmos-aiAtmos AI and MCP integrations: connect external AI assistants to Atmos through agent skills, atmos mcp start, multi-CLI MCP export, Atmos Pro MCP, and AWS MCP servers; run AI from Atmos through atmos ai ask/chat/exec, --ai command analysis, API providers, CLI providers, external MCP routing/pass-through, toolchain-aware export, auth-wrapped tools, and MCP+skills pairing/atmos-ansibleAnsible orchestration: playbook execution, variable passing, inventory management, stack-based configuration for configuration management/atmos-asciicastCreate and review portable Atmos CLI asciicast demos for community-facing documentation, examples, and training materials.Other plugins' skills for the same job