Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Terraform
  3. stacks

stacks

Apache-2.0Python2.0.21

A Terraform code pre-processor that minimizes codebase size while maintaining full infrastructure coverage.

GitHubGitHub
187 stars9 forks0 contributors

What is stacks?

Stacks is a Terraform code pre-processor that transforms input infrastructure code into optimized output code for Terraform or OpenTofu consumption. It solves the problem of Terraform codebase bloat by enabling developers to write less code while maintaining full infrastructure coverage through features like templating, reusable modules, and secret encryption.

Target Audience

Infrastructure engineers, SRE teams, and DevOps professionals managing large-scale Terraform codebases who want to reduce complexity and improve maintainability.

Value Proposition

Developers choose Stacks because it significantly reduces Terraform code duplication through intelligent preprocessing, offers Jinja templating for dynamic code generation, and provides built-in security features like inline secret encryption—all while remaining compatible with both Terraform and OpenTofu.

Overview

Stacks, the Terraform code pre-processor

Use Cases

Best For

  • Reducing duplication in large Terraform codebases
  • Implementing Jinja templating within Terraform configurations
  • Managing secrets securely within infrastructure-as-code
  • Creating reusable root modules across multiple environments
  • Automating variable initialization in Terraform projects
  • Simplifying collaboration on complex Terraform deployments

Not Ideal For

  • Projects with small, simple Terraform configurations that don't require code reuse or templating
  • Teams already using alternative infrastructure-as-code tools like Pulumi or AWS CDK
  • Environments demanding strict native Terraform tooling without preprocessing layers

Pros & Cons

Pros

Dynamic Code Generation

Jinja templating for Terraform enables writing less code by dynamically generating configurations, as per the feature list, reducing duplication in large codebases.

Modular Reusability

Reusable root modules allow creating and sharing infrastructure components across multiple stacks, promoting cleaner and more maintainable code.

Enhanced Security

Inline secret encryption provides a secure way to handle sensitive data directly in code, as highlighted in the features, without external tools.

Workflow Automation

Automatic variable initialization streamlines setup, making Terraform projects easier to manage and collaborate on, per the documentation.

Cons

Added Workflow Complexity

Introduces a preprocessing step that must be run before Terraform, complicating CI/CD pipelines and local development workflows.

Dependency on Templating Language

Requires knowledge of Jinja2 in addition to Terraform HCL, increasing the learning curve and potential for templating errors.

Limited Ecosystem Support

As a newer tool from Cisco, it lacks the extensive community modules and integrations available for pure Terraform or alternatives like Terragrunt.

Frequently Asked Questions

Quick Stats

Stars187
Forks9
Contributors0
Open Issues1
Last commit2 months ago
CreatedSince 2023

Tags

#opentofu#terraform-modules#devops-tools#terraform#infrastructure-as-code#iac-management

Included in

Terraform6.3k
Auto-fetched 1 day ago

Related Projects

terraformerterraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code

Stars14,536
Forks1,829
Last commit2 months ago
InfracostInfracost

Cloud cost intelligence for engineers, AI coding agents, and CI/CD 💰📉 Shift FinOps Left!

Stars12,319
Forks671
Last commit10 days ago
TerragruntTerragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.

Stars9,599
Forks1,197
Last commit2 days ago
atlantisatlantis

Terraform Pull Request Automation

Stars9,109
Forks1,273
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub