describe the individual scripts
- ID
250193b- date
2023-05-01 07:01:41+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
ac6acfc- message
describe the individual scripts- changed files
3 files, 31 additions, 2 deletions
Changed files
terraform/README.md (1595) → terraform/README.md (2670)
diff --git a/terraform/README.md b/terraform/README.md
index fafbfe1..93ec6cf 100644
--- a/terraform/README.md
+++ b/terraform/README.md
@@ -37,6 +37,35 @@ My scripts are:
<dd>
runs the <a href="https://developer.hashicorp.com/terraform/cli/commands/init"><code>init</code> command</a> plus any extra arguments supplied. e.g. <code>tfi -upgrade</code> becomes <code>terraform init -upgrade</code>
</dd>
+
+ <dt>
+ <a href="https://github.com/alexwlchan/scripts/blob/main/terraform/tfp">
+ <code>tfp</code>
+ </a>
+ </dt>
+ <dd>
+ runs the <a href="https://developer.hashicorp.com/terraform/cli/commands/plan"><code>plan</code> command</a> and saves the generated plan to <code>tfplan</code>.
+ I run this before making any changes, so I can review what Terraform is about to do.
+ </dd>
+
+ <dt>
+ <a href="https://github.com/alexwlchan/scripts/blob/main/terraform/tfa">
+ <code>tfa</code>
+ </a>
+ </dt>
+ <dd>
+ runs the <a href="https://developer.hashicorp.com/terraform/cli/commands/apply"><code>apply</code> command</a> plus any arguments supplied.
+ If you don’t pass any arguments, it applies the generated plan created by <code>tfp</code>.
+ </dd>
+
+ <dt>
+ <a href="https://github.com/alexwlchan/scripts/blob/main/terraform/tfmv">
+ <code>tfmv</code>
+ </a>
+ </dt>
+ <dd>
+ runs the <a href="https://developer.hashicorp.com/terraform/cli/commands/state/mv"><code>state mv</code> command</a> plus any arguments supplied.
+ </dd>
</dl>
[Terraform]: https://www.terraform.io/
terraform/tfa (919) → terraform/tfa (911)
diff --git a/terraform/tfa b/terraform/tfa
index f8a81ed..739d8eb 100755
--- a/terraform/tfa
+++ b/terraform/tfa
@@ -30,5 +30,5 @@ then
# All other Terraform operations
else
- tf apply terraform.plan "$@"
+ tf apply tfplan "$@"
fi
terraform/tfp (95) → terraform/tfp (87)
diff --git a/terraform/tfp b/terraform/tfp
index 4ac2eed..6c39ba1 100755
--- a/terraform/tfp
+++ b/terraform/tfp
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# This is an alias for "terraform plan".
-tf plan -out=terraform.plan "$@"
+tf plan -out=tfplan "$@"