Atmos Go Templates

•
1.3k
•

Enables dynamic, DRY infrastructure configurations by leveraging Go templates and external datasources within the Atmos orchestration framework.

The Atmos Go Templates skill provides comprehensive guidance for using Go's text/template syntax, Sprig, and Gomplate functions to create sophisticated DevOps configurations. It allows developers to move beyond static YAML by introducing conditional logic, loops, and dynamic key generation. By utilizing specialized functions like atmos.Component and atmos.GomplateDatasource, users can seamlessly bridge data between Terraform components and external APIs, ensuring infrastructure-as-code remains maintainable and highly reusable across complex multi-cloud environments.

主要功能

01Native support for Sprig and Gomplate function libraries
02Dynamic data fetching via atmos.GomplateDatasource with caching
03Multi-pass template evaluation for complex resolution pipelines
041,280 GitHub stars
05Cross-component attribute and output referencing with atmos.Component
06Advanced context variable access including stacks, components, and workspaces

使用场景

01Generating dynamic resource tags based on hierarchical stack metadata
02Fetching secrets or external IP addresses from APIs during configuration time
03Sharing Terraform outputs and variables between disparate infrastructure components