You want to use terraform import to start managing infrastructure that was not originally provisioned through infrastructure as code. Before you can import the resource’s current state, what must you do in order to prepare to manage these resources using Terraform?
A. update the configuration file to include the new resources
B. shut down or stop using the resources being imported so no changes are inadvertently missed
C. modify the Terraform state file to add the new resources
D. run terraform refresh to ensure that the state file has the latest information for existing resources.
Answer:A
You want to use terraform import to start managing infrastructure that was not originally provisioned through infrastructure as code. Before you can import the resource’s current state, what must you do in order to prepare to manage these resources using Terraform?
A. update the configuration file to include the new resources B. shut down or stop using the resources being imported so no changes are inadvertently missed C. modify the Terraform state file to add the new resources D. run terraform refresh to ensure that the state file has the latest information for existing resources.