Question 10 of 10Pro Only
You need to bring existing infrastructure under Terraform management. Explain the terraform import process and other state manipulation commands. What are the challenges and best practices?
Sample answer preview
Bringing existing infrastructure under Terraform management is a common task when adopting IaC in an organization. Terraform provides several commands for manipulating state, with import being the primary tool for this scenario.
terraform importstate manipulationterraform state mvterraform state rmexisting infrastructuremigration