1. Home
  2. /
  3. Terragrunt
  4. /
  5. Simple Terragrunt Configuration

Simple Terragrunt Configuration - Terragrunt Typing CST Test

Loading…

Simple Terragrunt Configuration — Terragrunt Code

A simple Terragrunt configuration to manage Terraform modules with a remote state backend.

# terragrunt/demo/terragrunt.hcl
remote_state {
	backend = "s3"
	config = {
		bucket = "my-terraform-state"
		key = "project/terraform.tfstate"
		region = "us-east-1"
	}
}

include {
	path = find_in_parent_folders()
}

dependencies {
	paths = ["../vpc", "../database"]
}

Terragrunt Language Guide

Terragrunt is an open-source thin wrapper for Terraform that simplifies and automates infrastructure provisioning with DRY (Don't Repeat Yourself) principles, remote state management, and multi-environment orchestration.

Primary Use Cases

  • ▸Managing Terraform remote state securely
  • ▸Automating multi-environment deployments
  • ▸Applying DRY principles across Terraform modules
  • ▸Orchestrating Terraform operations across modules
  • ▸Ensuring consistent infrastructure provisioning practices

Notable Features

  • ▸Automatic remote state management
  • ▸Dependency management for Terraform modules
  • ▸DRY configuration through reusable Terragrunt configs
  • ▸Multi-environment support with inheritance
  • ▸Built-in locking to prevent concurrent modifications

Origin & Creator

Created by Gruntwork in 2016 and maintained by the Terragrunt community.

Industrial Note

Terragrunt is widely used in enterprise cloud infrastructure setups where Terraform configurations are large, modular, and need consistent, repeatable deployments across multiple environments.

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher