atmos ai skill install atmos-importsAtmos Imports
Use this skill for stack manifest import: behavior, especially remote imports. Imports pull
stack configuration, not component source code.
Related Skills
| Need | Load |
|---|---|
| General stack structure and merge precedence | atmos-stacks |
| Component source provisioning and vendoring | atmos-vendoring |
| Private GitHub auth with Atmos Pro STS | atmos-auth |
| Migration from old import/name patterns | atmos-modernization |
Import Basics
import:- catalog/vpc/defaults- mixins/region/us-east-2- orgs/acme/plat/prod/_defaults
Atmos resolves imports before producing the final stack. Use imports for _defaults.yaml, mixins,
catalog defaults, reusable stack fragments, and remote stack configuration.
If both file.yaml and file.yaml.tmpl exist, the template version is preferred. Template imports
can receive context and render before merge.
Remote Imports
Remote imports use the same stack import: key:
import:- https://raw.githubusercontent.com/acme/config/main/stacks/catalog/vpc.yaml- github://acme/config/main/stacks/catalog/eks.yaml- git::https://github.com/acme/config.git//stacks/catalog/db.yaml?ref=v1.2.3- s3::https://s3.amazonaws.com/acme-configs/stacks/catalog/vpc.yaml- gcs::gs://acme-configs/stacks/catalog/eks.yaml- oci://ghcr.io/acme/atmos-config:v1.2.3
Use pinned refs or immutable artifact tags for production imports. Prefer HTTPS/GitHub forms for read-only public config and Git/OCI forms when versioning, auth, or packaged artifacts matter.
Import vs Source vs Vendoring
import:pulls stack YAML configuration.- Component
source:provisions component source code. vendor.yamlplusatmos vendor pullmaterializes external files into the repository.
Remote imports do not create components/terraform/<name> directories. If a remote imported stack
references a component whose source is not local, also configure component source: or vendor the
component with atmos vendor pull.
Use atmos vendor pull to cache important remote imports/components locally for offline access,
repeatability, and faster CI.
Private GitHub Imports
For private GitHub remote imports in CI, prefer Atmos Pro github/sts:
auth:providers:atmos-pro:kind: atmos/prospec:workspace_id: !env ATMOS_PRO_WORKSPACE_IDidentities:atmos-pro:kind: atmos/provia:provider: atmos-prointegrations:github-sts:kind: github/stsvia:provider: atmos-prospec:auto_provision: true
In CI, github/sts can lazily mint GitHub tokens before the first private remote read, including
atmos vendor pull, component source:, remote import:, and private Terraform module fetches.
Debugging
- Use
atmos describe stacks --stack <stack>to verify imported and merged output. - Use
atmos validate stacksbefore relying on generated stack names or inherited component config. - If a remote import works but Terraform cannot find a component, check component source/vendoring.
- If a private import fails in CI, check
id-token: write,atmos/pro,github/sts, and repository trust policy in Atmos Pro.