Question 780
A legacy network exists outside Terraform, and the team wants an auditable declarative import workflow. Which Terraform concept most directly explains the appropriate approach?
Explanation
Correct Answer
Use an import block with the correct target resource address and provider object ID. A reviewed plan includes adoption of the existing network rather than creation of a duplicate.
Incorrect Answers
Use terraform state show with the exact managed resource address. A reviewed plan includes adoption of the existing network rather than creation of a duplicate.
Enable focused Terraform logging and inspect whether the failure occurs during init or provider operations. Use an import block with the correct target resource address and provider object ID.
Set a suitable TF_LOG level and TF_LOG_PATH to an access-controlled diagnostic path. Import blocks allow existing object adoption to be declared in configuration.