Infrastructure
Infrastructure as code: Terraform, OpenTofu, Ansible.
No short alias for destroy.
File aliases/infra.sh. Disable: export ALIASX_DISABLE="infra"
Terraform
| Name | Runs | What it does | |
|---|---|---|---|
tf | terraform | terraform | needs terraform |
tfi | terraform init | init | needs terraform |
tff | terraform fmt -recursive | format all files | needs terraform |
tfv | terraform validate | validate | needs terraform |
tfp | terraform plan | plan | needs terraform |
tfa | terraform apply | apply (asks to confirm) | needs terraform |
tfpo | terraform plan -out=tfplan | plan and save to tfplan | needs terraform |
tfao | terraform apply tfplan | apply exactly the saved plan | needs terraform |
tfo | terraform output | outputs | needs terraform |
tfs | terraform show | show state or plan | needs terraform |
tfwl | terraform workspace list | list workspaces | needs terraform |
tfstate | terraform state list | list state resources | needs terraform |
OpenTofu
| Name | Runs | What it does | |
|---|---|---|---|
tofui | tofu init | tofu init | needs tofu |
tofuf | tofu fmt -recursive | tofu format all files | needs tofu |
tofuv | tofu validate | tofu validate | needs tofu |
tofup | tofu plan | tofu plan | needs tofu |
tofua | tofu apply | tofu apply (asks to confirm) | needs tofu |
Ansible
| Name | Runs | What it does | |
|---|---|---|---|
ap | ansible-playbook | run playbook | needs ansible |
apcheck | ansible-playbook --check --diff | dry-run playbook with diff | needs ansible |
ainv | ansible-inventory --graph | inventory graph | needs ansible |
alint | ansible-lint | lint playbooks | needs ansible |