OpenParable
Skip to content
← Back to skills

Atmos AWS Ecr

DevOps & Security
atmos-aws-ecr

Atmos AWS Ecr is an Agent Skill for devops & security published in the cloudposse/atmos repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

AWS ECR commands in Atmos: atmos aws ecr login, ECR auth integrations, Docker credential writes, registry login via identity or explicit registry

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/cloudposse/atmos/blob/HEAD/agent-skills/skills/atmos-aws-ecr/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/atmos-aws-ecr, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Atmos AWS ECR

Use this skill for logging Docker clients into AWS Elastic Container Registry through Atmos. It owns atmos aws ecr login.

Command Model

atmos aws ecr login supports three modes:

# Named integration from auth.integrations
atmos aws ecr login dev/ecr/primary

# All aws/ecr integrations linked to an identity
atmos aws ecr login --identity dev-admin

# Explicit registry URLs using current AWS credentials
atmos aws ecr login --registry 123456789012.dkr.ecr.us-east-1.amazonaws.com

Named integration and identity modes use Atmos Auth. Explicit --registry mode uses current AWS credentials from the environment.

Configuration

Configure ECR integrations under auth.integrations with kind: aws/ecr. Route provider, identity, AWS SSO, SAML, OIDC, assume role, and assume root details to atmos-auth.

auth:
  providers:
    company-sso:
      kind: aws/iam-identity-center
      region: us-east-1
      start_url: https://company.awsapps.com/start/

  identities:
    dev-admin:
      kind: aws/permission-set
      via:
        provider: company-sso
      principal:
        name: AdministratorAccess
        account: dev

  integrations:
    dev/ecr/primary:
      kind: aws/ecr
      via:
        identity: dev-admin
      spec:
        auto_provision: true
        registry:
          account_id: "123456789012"
          region: us-east-2

Agent Guidance

  • Prefer named integrations for stable registries; they make the account, region, and identity explicit in atmos.yaml.
  • Use --identity when the intent is "log in to every ECR registry attached to this identity."
  • Use --registry for one-off registry URLs or when a script intentionally uses ambient AWS credentials instead of Atmos Auth.
  • ECR credentials are written to Docker's config location, respecting DOCKER_CONFIG when set. Set DOCKER_CONFIG first when the workflow needs isolated credentials.
  • spec.auto_provision: true triggers ECR login during atmos auth login; set it to false for registries that should only be logged in explicitly.
  • If Docker, AWS CLI, or other tools must be installed for a CI job, route installation to atmos-toolchain.

Routing

NeedSkill
AWS identity/provider setup, SSO, SAML, OIDC, assume role/rootatmos-auth
Installing Docker, AWS CLI, or related toolsatmos-toolchain
OCI component sources or vendored artifacts stored in registriesatmos-components, atmos-vendoring