Atmos Go Templates

•
1.3k
•

Powers dynamic infrastructure configurations using Go templates, Sprig, and Gomplate functions within the Atmos ecosystem.

The Atmos Go Templates skill equips Claude with the specialized knowledge to implement complex logic, loops, and dynamic data lookups within Atmos configuration files. By leveraging Go's text/template syntax alongside Sprig and Gomplate libraries, it allows developers to maintain DRY, hierarchical configurations while fetching remote state, environment variables, or API data directly into YAML manifests. This is particularly useful for managing large-scale, multi-environment infrastructure where standard YAML properties are insufficient for dynamic requirements, providing a robust escape hatch for advanced string manipulation and conditional logic.

Key Features

01Context-aware variables including stack, component, and workspace metadata
02Native support for Sprig and Gomplate function libraries
03External data fetching with built-in caching via GomplateDatasource
04Cross-component data access via atmos.Component function
05Multi-pass template evaluation for complex processing pipelines
061,293 GitHub stars

Use Cases

01Generating environment-specific tags and dynamic resource names
02Linking component configurations by reading Terraform outputs from remote state
03Fetching secrets or configuration from external APIs and cloud providers