If you ever write some #Terraform or #OpenTofu code and see the number of counts based on the workspace you use growing: do yourself a favor, drop the workspace, and use #Terragrunt to orchestrate you #IaC.

Am I living a nightmare porting some legacy #terraform code to better practices? Yes.
Is #Terragrunt making my live much easier? Also Yes.

https://terragrunt.gruntwork.io/docs/getting-started/quick-start/

#DevOps #Infra #Platform

Terragrunt

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

Terragrunt

Also, if you see aliased providers : this is a code smell !
Split your code in smaller modules with variables and outputs and use #Terragrunt to handle the orchestration.

Future you will thank present you.