Atmos Go Templates

•
1.3k
•

Streamlines complex infrastructure configurations using advanced Go templating, Sprig functions, and Gomplate datasources within Atmos.

The Atmos Go Templates skill enables developers to implement sophisticated logic and dynamic values within their Terraform orchestration workflows. By leveraging Go's text/template syntax alongside the Sprig and Gomplate libraries, it provides a powerful escape hatch for complex conditional logic, loops, and string manipulations that standard YAML cannot achieve. This skill integrates natively with Atmos functions to read component outputs, fetch external data with automatic caching, and manage hierarchical configurations, ensuring your DevOps environment remains DRY and highly maintainable.

Características Principales

01Type-safe template escaping for compatibility with ArgoCD, Helm, and Datadog
02External data fetching via atmos.GomplateDatasource with built-in execution caching
03Support for multi-pass template evaluations to resolve nested configuration pipelines
04Dynamic data retrieval from other components using the atmos.Component function
051,293 GitHub stars
06Full Go text/template syntax support with Sprig and Gomplate function libraries

Casos de Uso

01Fetching runtime secrets or API data to populate component settings during deployment
02Generating dynamic infrastructure tags based on stack context and environment variables
03Injecting Terraform outputs from remote components into YAML configuration manifests