Trace plan with TF_LOG terraform
Capture provider/API debug to a file; use TRACE for the most verbose level
TF_LOG=DEBUG TF_LOG_PATH=tf.log terraform plan
more terraform
all 43 commands →
Plan with var file
terraform plan -var-file=prod.tfvars -out=plan.tfplan
Apply a saved plan
terraform apply plan.tfplan
Import existing resource
terraform import module.path.resource_type.name <remote-id>
Show state for a resource
terraform state show module.path.resource_type.name
Move resource in state
terraform state mv old.address new.address