mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-16 08:44:25 +00:00
chore(kb/terraform): generic maintenance
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user