Best practices
We’ve looked at the built-in capabilities within Terraform to import individual resources and at how we can identify the existing resources that we want to import on different cloud platforms. We recognized some of the limitations of the built-in capabilities and looked at 3rd party alternatives that offer options of importing entire environments en masse, as well as the current limitations of such options. Now, we’ll look at best practices for how and when to use these different approaches to import existing resources and environments to bring them under the management of Terraform.
Blast radius
When importing existing resources and bringing them under management using Terraform, it’s important to think carefully about the organization of those resources and how you want to compartmentalize them into working IaC solutions in the long term. This is the design principle of minimizing the blast radius of your Terraform modules. When we are importing...