Rethinking
Infrastructure
as Code

Curated articles, guides and op-eds by practitioners and thought leaders covering IaC best practices, Terramate product updates and industry reports. Learn about the latest in DevOps, platform engineering and cloud from our expert authors.

Recommended Articles

Preview of Introducing Terramate CLI 0.9.0 - GitLab, Workspaces, and Partial Evaluation
Product Update

Introducing Terramate CLI 0.9.0 - GitLab, Workspaces, and Partial Evaluation

Terramate 0.9.0 adds full support for GitLab, Terraform CLI Workspaces and Partial Evaluation.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Mastering Terraform Workflows: apply-before-merge vs apply-after-merge
Guides

Mastering Terraform Workflows: apply-before-merge vs apply-after-merge

Discover the two main Terraform and OpenTofu workflows: apply-before-merge and apply-after-merge, and learn why apply-after-merge is likely the better choice.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Introduction: Simple HCL Code Generation
Product Update

Introduction: Simple HCL Code Generation

Introducing Ad-hoc HCL code generation, a more convenient way of generating HCL code for single stacks.

Photo of Annu Singh

Annu Singh

Read more

White arrow
Preview of Introducing Terramate v0.8.0 - OpenTofu Support & Runtime Configuration for Stacks
Product Update

Introducing Terramate v0.8.0 - OpenTofu Support & Runtime Configuration for Stacks

The latest release of Terramate CLI v0.8.0 includes significant improvements to managing configuration with environment variables, offering users more flexibility and control.

Photo of Annu Singh

Annu Singh

Read more

White arrow
Preview of Introducing the Terramate GitHub Action
Guides

Introducing the Terramate GitHub Action

Integrating Terramate into your GitHub Actions workflows just got easier with the introduction of the Terramate Action on the GitHub Marketplace.

Photo of Annu Singh

Annu Singh

Read more

White arrow
Preview of How Terramate adds superpowers to Terragrunt in just 5 minutes
Guides

How Terramate adds superpowers to Terragrunt in just 5 minutes

This guide demonstrates how Terramate can supercharge Terragrunt by adding advanced capabilities in just a few minutes without changing any existing configuration.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Introducing Terramate v0.6.0 - Terragrunt Change Detection
Product Update

Introducing Terramate v0.6.0 - Terragrunt Change Detection

Learn more about the recent Terramate v0.6.0 release, which comes with support for Terragrunt Change Detection to help you orchestrate Terragrunt stacks that contain changes only.

Photo of Annu Singh

Annu Singh

Read more

White arrow
Preview of Create and orchestrate Terraform Stacks with Terramate
Guides

Create and orchestrate Terraform Stacks with Terramate

In this blog post, we discuss how to create and orchestrate stacks to provide a structured approach to organizing Terraform and OpenTofu into manageable units.

Photo of Annu Singh

Annu Singh

Read more

White arrow
Preview of Introducing Terramate v0.5.0 - Parallel Execution for Stacks
Product Update

Introducing Terramate v0.5.0 - Parallel Execution for Stacks

With Terramate v0.5.0, you can now harness the power of parallel execution for your stacks. This means you can parallel run multiple independent stacks using the terramate run and terramate run script commands.

Photo of Annu Singh

Annu Singh

Read more

White arrow
Preview of FinOps Cloud Cost Estimation with Terramate, Terraform and Infracost
Guides

FinOps Cloud Cost Estimation with Terramate, Terraform and Infracost

This guide explains how to integrate Infracost with Terramate to estimate the cloud cost of your Terraform Stacks in just 5 minutes.

Photo of Matteo Depascale

Matteo Depascale

Read more

White arrow
Preview of Getting Started with Terramate in existing Terraform and OpenTofu Projects
Guides

Getting Started with Terramate in existing Terraform and OpenTofu Projects

This blog post demonstrate how we can onboard Terramate in existing Terraform and OpenTofu projects with a single command in just 1 minute.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of How to configure and run sequences of commands in Stacks using Terramate Scripts
Guides

How to configure and run sequences of commands in Stacks using Terramate Scripts

Terramate scripts allow you to specify a recurring sequence of commands to execute, e.g., a deployment, specifying specific options for the cloud. Scripts are especially useful for defining custom commands in Terramate that can be reused among environments and platforms without repeating expressive logic.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Introducing Terramate v0.4.4 🎉
Product Update

Introducing Terramate v0.4.4 🎉

Besides stack filters and scripts, we also promoted a bunch of commands from the experimental to the stable namespace, launched a new documentation website that is now much more complete and added better debugging instructions to Terramate. As always, for a complete overview of all changes in v0.4.4, please see the CHANGELOG.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Announcing: Terramate VIM Plugin
Product Update

Announcing: Terramate VIM Plugin

Today we are happy to introduce another open source project: vim-terramate! The plugin utilizes the Terramate Language Server to provide code diagnostics while editing Terramate files.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Terramate joins the CNCF as a Silver Member
Company Update

Terramate joins the CNCF as a Silver Member

We are very proud to announce that Terramate has become a Silver member of the Cloud Native Computing Foundation® (also known as the CNCF®) and has joined the ranks of many other tech industry leaders committed to cloud-native platforms, projects, and technologies.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Manage Terraform Providers Programmatically with Terramate
Guides

Manage Terraform Providers Programmatically with Terramate

Dive into Terramate's powerful feature to manage multiple providers across stacks effortlessly. Save time and reduce complexity in your DevOps workflow with our practical, DRY approach. Simplify your multi-cloud strategy with Terramate's code generation - it's efficient, automated, and smart.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Generate Terraform Backend / Provider Configurations with Terramate
Guides

Generate Terraform Backend / Provider Configurations with Terramate

Discover the power of Terramate in augmenting Terraform's capabilities. In this guide, we address a common Terraform challenge: managing provider and backend configurations across multiple stacks. Learn how Terramate's Code Generation feature simplifies this process, enabling you to update configurations easily and efficiently with a DRY approach. Dive into our example repository for hands-on experience in transforming your Terraform projects. Join our community for more insights and support.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Terramate v0.4.3 — Deep Cloning for Stacks
Guides

Terramate v0.4.3 — Deep Cloning for Stacks

One of the most requested features for Terramate CLI was to enable deep cloning for stacks in Terramate using the clone command. You can now use the clone command to clone nested stacks or, in other words, entire environments.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Infrastructure as Code Landscape in 2023
Guides

Infrastructure as Code Landscape in 2023

The IaC landscape is rich and diverse, with Terraform leading the pack due to its extensive capabilities, and agnostic nature. As businesses continue to scale and cloud infrastructures become more complex, the demand for efficient, effective IaC tools will only grow.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Why you should break down your Terraform into Stacks
Guides

Why you should break down your Terraform into Stacks

Explore effective strategies for managing large-state Terraform projects. Understand the challenges and solutions for optimizing infrastructure synchronization, collaboration, and security in large-scale Terraform environments. Ideal for DevOps professionals seeking efficient and secure practices in infrastructure management.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Hidden Costs of Unoptimized Terraform Projects
Guides

Hidden Costs of Unoptimized Terraform Projects

Explore the essentials of optimizing Terraform in Infrastructure as Code (IaC). This concise guide covers the pitfalls of unoptimized Terraform setups, including increased costs, technical debt, and security risks. It emphasizes the benefits of optimized IaC for enhanced operational efficiency, cost savings, and robust security, essential for success in cloud and DevOps environments

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of 10 Biggest Pitfalls of Terraform
Guides

10 Biggest Pitfalls of Terraform

Terraform, a popular tool in Infrastructure as Code (IaC), faces challenges with managing multiple environments and scaling, leading to complex and error-prone setups. Terramate, a new CLI tool, addresses these issues by introducing stack concepts, global variables, and code generation to simplify environment management and reduce code complexity. It improves upon Terraform's limitations in versioning, backend configuration, and resource lifecycle management, offering a more streamlined and flexible approach for complex infrastructure management. Terramate's innovative features enhance efficiency and control, making it a valuable addition to the IaC toolset.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of What does HashiCorp’s BSL/BUSL adoption mean for Terramate
Guides

What does HashiCorp’s BSL/BUSL adoption mean for Terramate

HashiCorp's recent shift from an open-source license to the Business Source License (BSL/BUSL) for products like Terraform has stirred the tech community. This move, affecting not only Terraform but also Vault, Nomad, and others, transitions from the Mozilla Public License (MPL) v2.0 to a less open framework. This article delves into the implications of this change for Terramate CLI and Terramate Cloud, exploring how this licensing transition influences their functionalities, especially in light of Terramate's commitment to open-source principles and its ongoing development in the Terraform ecosystem.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of How to build a CI/CD pipeline for Terraform with Terramate on GitHub Actions
Guides

How to build a CI/CD pipeline for Terraform with Terramate on GitHub Actions

Terramate enhances Terraform projects with features like code generation, stacks, and change detection, making it a powerful tool for CI/CD pipelines. It works seamlessly with GitHub Actions. The example on GitHub shows how Terramate uses stacks for efficient Terraform modules and provides orchestration with its terramate run command. It supports stack selection based on directories or tags and incorporates change detection. The GitHub Actions example illustrates workflows for automating Terraform plan and apply processes, demonstrating Terramate's utility in streamlining CI/CD pipelines.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Product Update: Terramate 0.4.0 — Road to Terramate Cloud
Product Update

Product Update: Terramate 0.4.0 — Road to Terramate Cloud

Terramate's latest update, version 0.4.0, marks a significant leap towards the anticipated launch of Terramate Cloud, enhancing the experience for teams managing Terraform projects. This update simplifies the integration process into existing Terraform projects, introduces new features like glob imports, and streamlines documentation for a better user experience. Additionally, the inclusion of experimental support for Terramate Cloud and the integration of the Terramate Language Server directly into the main repository signifies a commitment to continuous improvement and user-centric development. Looking forward, Terramate is not only focusing on enriching its feature set but also engaging with the community through the Terramate Cloud Design Partner Program, inviting users to contribute to the evolution of this promising platform.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Infrastructure as Code is the Answer
Guides

Infrastructure as Code is the Answer

Explore the transformative journey of Infrastructure as Code (IaC) in this insightful article. From its early days in the late 1990s to the modern era of cloud computing, learn how IaC evolved from basic configuration management to sophisticated tools like Terraform and Ansible. Discover the rise of GitOps, a cutting-edge approach using Git for streamlined infrastructure management. This piece is a must-read for understanding how IaC is reshaping cloud infrastructure, offering automation, efficiency, and scalability.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of The Terramate Community is now on Discord
Company Update

The Terramate Community is now on Discord

Exciting news for the Terramate community: We've launched our Discord server! This platform is a great place for everyone interested in Terramate to connect, discuss, and share.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Understanding the basics of Terramate
Guides

Understanding the basics of Terramate

This tutorial showcases how Terramate can enhance your Terraform workflows by providing powerful features like code generation, stack management, orchestration, and change detection. By following this guide, you should have a good understanding of how to set up and use Terramate for efficient infrastructure management.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of How to keep your Terraform code DRY by using Terramate
Guides

How to keep your Terraform code DRY by using Terramate

Discover the power of Terramate in streamlining your Terraform workflows with this essential guide on keeping your Terraform code DRY (Don't Repeat Yourself). This post delves into the advanced features of Terramate, such as globals and code generation, which help in managing multiple Terraform stacks efficiently. Learn how Terramate's innovative approach to data sharing and hierarchy minimizes code duplication, making your infrastructure code more maintainable and less prone to errors. Whether you're dealing with large codebases or multiple environments, this article offers practical insights on transforming your Terraform setup into a more efficient and manageable system with Terramate. Join us to explore how Terramate simplifies and optimizes your Terraform projects, ensuring a more productive and streamlined workflow.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Introducing the Terramate VSCode Extension and Language Server
Guides

Introducing the Terramate VSCode Extension and Language Server

Today we are happy to introduce two exciting new open source projects: the Terramate VSCode Extension and the Terramate Language Server.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Terramate and Terragrunt
Guides

Terramate and Terragrunt

Explore the innovative orchestration and code generation capabilities of Terramate in this deep dive, contrasting it with existing tools like Terragrunt. This article delves into Terramate's design philosophy, emphasizing minimal intrusion in existing setups and its ability to handle complex Terraform environments. It also discusses the unique features of Terramate, such as enhanced orchestration, code generation using globals, and the generation of various file types, distinguishing it from Terragrunt and showcasing its versatility in managing and automating Terraform stacks. Join us to understand how Terramate enhances infrastructure as code practices, offering a flexible, powerful solution for your Terraform needs.

Photo of Sören Martius

Sören Martius

Read more

White arrow
Preview of Introducing Terramate — An Orchestrator and Code Generator for Terraform
Product Update

Introducing Terramate — An Orchestrator and Code Generator for Terraform

This post introduces Terramate, explaining its purpose, benefits, and why it's become a favorite among clients. Discover how Terramate addresses the challenges of managing Terraform at scale, including reducing code duplication and improving orchestration. Learn about its unique features like hierarchical data sharing, change detection with Git integration, and the generation of HCL code. Whether you're new to Terraform or looking to enhance your existing setup, this article offers insights into making infrastructure as code more efficient and user-friendly with Terramate.

Photo of Sören Martius

Sören Martius

Read more

White arrow