Terraform Bash prompt display workspace terraform-workspace-prompt Create Terraform template files sh -c "$(curl -fsSL https://raw.githubusercontent.com/dyordsabuzo/miscellany/main/tools/terraform-create-template-files.sh)" Move state to another workspace terraform workspace select <SOURCE_WORKSPACE> terraform state pull > source.tfstate terraform workspace select <TARGET_WORKSPACE> terraform state push source.tfstate Delete state from source workspace terraform workspace select <SOURCE_WORKSPACE> terraform state list | xargs -n 1 terraform state rm Remove lock terraform force-unlock <LOCK_ID>