Atmos Go Templates

•
1.3k
•

Leverages Go templates, Sprig, and Gomplate functions to create dynamic, logic-driven configurations for Terraform and Helmfile orchestration.

The Atmos Go Templates skill empowers developers to implement complex logic, conditional rendering, and advanced string manipulation within Atmos stack manifests. By integrating standard Go template syntax with the powerful Sprig and Gomplate libraries, this skill enables dynamic infrastructure-as-code patterns, automated data fetching from external sources, and seamless cross-component variable sharing. It provides a powerful escape hatch for infrastructure orchestration that requires loops, conditionals, or external data lookups, ensuring your DevOps configuration remains DRY and scalable.

주요 기능

01Full Go text/template support integrated with Sprig and Gomplate function libraries
02Multi-pass template evaluation for complex, layered configuration resolution
03External data fetching with automatic caching using atmos.GomplateDatasource
04Comprehensive access to Atmos context variables including stacks, components, and workspaces
05Dynamic cross-component referencing via atmos.Component for remote state and variables
061,294 GitHub stars

사용 사례

01Implementing complex conditional logic and loops within Terraform variable definitions
02Sharing outputs and metadata between different Atmos components to eliminate manual duplication
03Fetching real-time configuration or secrets from external APIs during stack processing