Atmos Go Templating

•
1.3k
•

Optimizes Atmos configurations using Go templates, Sprig, and Gomplate functions for advanced Terraform and Helmfile orchestration.

This skill empowers Claude to leverage the Go text/template engine within the Atmos framework, enabling complex conditional logic, loops, and dynamic configuration generation for infrastructure-as-code projects. It provides specialized guidance on using Sprig and Gomplate libraries, fetching external data via datasources, and managing multi-pass template evaluations. By standardizing how templates are processed before YAML parsing, this skill helps maintain clean, DRY (Don't Repeat Yourself) hierarchical configurations while providing the necessary escape hatches for advanced string manipulation and external data integration.

Key Features

01Dynamic external data fetching via atmos.GomplateDatasource with caching
02Template escaping mechanisms for external tools like ArgoCD and Helm
03Multi-pass template evaluation for complex configuration pipelines
04Advanced Go text/template syntax support with Sprig and Gomplate libraries
051,279 GitHub stars
06Cross-component attribute and Terraform output sharing via atmos.Component

Use Cases

01Implementing complex conditional logic and iteration in Terraform stack manifests
02Generating dynamic tags and resource names across hierarchical environment imports
03Fetching real-time secrets or API data to populate infrastructure variables