chore(kb/terraform): generic maintenance

This commit is contained in:
Michele Cereda
2024-02-17 16:30:51 +01:00
parent 3c1566653a
commit adc1a23ba8
2 changed files with 17 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ brew install 'asdf'
# Load ASDF's environment and completion.
# Alternatively, just load oh-my-zsh's plugin for it.
. "$(brew --prefix 'asdf')/asdf.sh"
echo -e "source "(brew --prefix asdf)"/libexec/asdf.fish" | tee ~/'.config/fish/conf.d/asdf.fish'
```
## Plugins management

View File

@@ -19,10 +19,22 @@
## TL;DR
<details>
<summary>Installation</summary>
```sh
brew install 'terraform'
```
</details>
<details>
<summary>Usage</summary>
```sh
# Initialization.
terraform init
terraform init -reconfigure
terraform init -reconfigure -update
# Validate files.
terraform validate
@@ -30,7 +42,7 @@ 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'
terraform plan -destroy -out 'path/to/file.tfstate' -parallelism '50'
# Make the changes.
terraform apply
@@ -86,6 +98,8 @@ terraform graph | dot -Tsvg > 'graph.svg'
terraform get -update -no-color
```
</details>
## Modules
Include a module in the configuration with the `module` keyword: