@pagopa/nx-terraform
@pagopa/nx-terraform
is the DX Nx plugin that discovers Terraform configurations and infers targets
for formatting, validation, testing, planning, applying, security scanning,
documentation, and module publishing, wiring every module and environment into
the Nx project graph.
Use cases
- Running
nx affectedand Nx task caching over Terraform projects, alongside application code - Standardizing
fmt,validate,init,plan, andapplytargets across modules and environments, with frozen module lock support in CI - Scanning Terraform code with
trivyusing the workspace configuration - Running unit, contract, integration, and end-to-end Terraform tests through inferred targets
- Publishing modules to the Terraform Registry from the workspace