Atmos Go Templates

•
1.3k
•

Enables advanced Go templating logic and dynamic configuration within Atmos infrastructure-as-code stacks.

The Atmos Go Templates skill empowers developers to use the full power of Go text/template syntax, Sprig, and Gomplate functions within their Atmos stack configurations. It serves as a powerful logic engine for complex conditional branching, loops, and dynamic key generation that goes beyond standard YAML capabilities. By providing native access to component outputs, external datasources, and secret stores, it streamlines the creation of DRY (Don't Repeat Yourself), reusable infrastructure modules for Terraform and Helmfile environments, allowing for sophisticated configuration orchestration at scale.

Key Features

01Native integration with Atmos Store for reading SSM, Vault, and other secret providers.
02Support for multi-pass template evaluations to handle complex, multi-stage resolution pipelines.
03Full Go text/template syntax support with Sprig and Gomplate function libraries.
04Automated external data fetching with built-in caching using atmos.GomplateDatasource.
051,280 GitHub stars
06Dynamic component output and variable retrieval via the atmos.Component function.

Use Cases

01Implementing complex conditional logic and loops for environment-specific infrastructure deployments.
02Automating the ingestion of external API data or remote state outputs into Terraform variables.
03Generating dynamic resource tags and naming conventions based on hierarchical stack context.