Skip to main content

nx-terraform

An Nx plugin for managing Terraform projects within an Nx monorepo

Automatic Project Discovery

Automatically discovers Terraform projects by looking for main.tf files in your workspace. No manual configuration required.

$ nx run

Inferred Tasks

Automatically creates Terraform targets (init, plan, apply, destroy, validate, fmt, output) for each discovered project. Use Nx commands to manage your infrastructure.

BackendInfraModule

Smart Dependencies

Automatic dependency management between Terraform projects ensures proper execution order. Module references are detected automatically from your Terraform code.