Plan with var file
Show changes; save plan artifact for CI gating
terraform plan -var-file=prod.tfvars -out=plan.tfplan
More terraform commands
-
terraform apply plan.tfplanApply exactly the previously generated plan — no interactive prompts
-
terraform import module.path.resource_type.name <remote-id>Bring an already-existing resource under Terraform control
-
terraform state show module.path.resource_type.nameInspect Terraform state attributes for a single resource
-
terraform state mv old.address new.addressRename/reorganize resource without destroying and recreating it
-
terraform workspace listShow all workspaces; current one marked with *