From 8f87f2ac65276a8d3f6e49416230ab4557047dd7 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 15 Sep 2022 18:16:40 +0200 Subject: [PATCH] Small improvements to the TL;DR --- knowledge base/terraform.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/knowledge base/terraform.md b/knowledge base/terraform.md index bd13e86..d82b4aa 100644 --- a/knowledge base/terraform.md +++ b/knowledge base/terraform.md @@ -12,17 +12,21 @@ terraform validate # Show what would be done. terraform plan +terraform plan -state 'path/to/file.tfstate' -var-file 'path/to/var.tfvars' terraform plan -out 'path/to/file.tfstate' -parallelism '50' # Make the changes. terraform apply -terraform apply -auto-approve -backup -parallelism 25 'path/to/plan.tfstate' +terraform apply -auto-approve -backup -parallelism '25' 'path/to/plan.tfstate' # Destroy everything. # `destroy` is an alias of `apply -destroy` and is being deprecated. terraform destroy terraform apply -destroy +# Unlock a state file. +terraform force-unlock 'lock_id' + # Format files. terraform fmt terraform fmt -check -diff -recursive