Plan with var file terraform
Show changes; save plan artifact for CI gating
terraform plan -var-file=prod.tfvars -out=plan.tfplan
more terraform
all 43 commands →
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
Workspace list
terraform workspace list