Atmos AWS Ecr
DevOps & Securityatmos-aws-ecrAtmos 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
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
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
--identitywhen the intent is "log in to every ECR registry attached to this identity." - Use
--registryfor 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_CONFIGwhen set. SetDOCKER_CONFIGfirst when the workflow needs isolated credentials. spec.auto_provision: truetriggers ECR login duringatmos auth login; set it tofalsefor 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
| Need | Skill |
|---|---|
| AWS identity/provider setup, SSO, SAML, OIDC, assume role/root | atmos-auth |
| Installing Docker, AWS CLI, or related tools | atmos-toolchain |
| OCI component sources or vendored artifacts stored in registries | atmos-components, atmos-vendoring |