- Move all sensitive variables from TFC to
prod.auto.tfvars - Declare the resource in Terraform code
- Do
terraform importwith-var-file=prod.auto.tfvars - Try
terraform planand potentially fix resource declaration in Terraform - Move back sensitive variables to TFC
- Do a plan and apply again in TFC
Notice: you may not be able to import multiple resources at once if there is dependency among them