Atmos Go Templates

•
1.3k
•

Simplifies complex infrastructure logic in Atmos using Go templates, Sprig functions, and Gomplate datasources.

The atmos-templates skill empowers developers to implement advanced logic within Atmos configurations using Go's text/template syntax. It provides a powerful escape hatch for scenarios where standard YAML functions fall short, enabling conditional logic, loops, and dynamic key generation. By integrating Sprig and Gomplate libraries, it allows for seamless data fetching from external sources and cross-component configuration sharing, ensuring infrastructure-as-code remains DRY (Don't Repeat Yourself) and highly maintainable across complex environments.

主な機能

01Cross-component data retrieval via atmos.Component and atmos.Store functions
021,279 GitHub stars
03Full Go text/template syntax support with configurable delimiters
04Automated external data fetching and caching with atmos.GomplateDatasource
05Integration with Sprig and Gomplate function libraries for advanced manipulation
06Support for multi-pass template evaluation pipelines for complex resolution

ユースケース

01Fetching secrets or configuration data from external APIs and cloud providers during orchestration
02Implementing conditional logic and loops to programmatically define infrastructure components
03Generating dynamic resource tags and naming conventions based on environment context