Infrastructure

Infrastructure as code: Terraform, OpenTofu, Ansible.

No short alias for destroy.

File aliases/infra.sh. Disable: export ALIASX_DISABLE="infra"

Terraform

NameRunsWhat it does
tfterraformterraformneeds terraform
tfiterraform initinitneeds terraform
tffterraform fmt -recursiveformat all filesneeds terraform
tfvterraform validatevalidateneeds terraform
tfpterraform planplanneeds terraform
tfaterraform applyapply (asks to confirm)needs terraform
tfpoterraform plan -out=tfplanplan and save to tfplanneeds terraform
tfaoterraform apply tfplanapply exactly the saved planneeds terraform
tfoterraform outputoutputsneeds terraform
tfsterraform showshow state or planneeds terraform
tfwlterraform workspace listlist workspacesneeds terraform
tfstateterraform state listlist state resourcesneeds terraform

OpenTofu

NameRunsWhat it does
tofuitofu inittofu initneeds tofu
tofuftofu fmt -recursivetofu format all filesneeds tofu
tofuvtofu validatetofu validateneeds tofu
tofuptofu plantofu planneeds tofu
tofuatofu applytofu apply (asks to confirm)needs tofu

Ansible

NameRunsWhat it does
apansible-playbookrun playbookneeds ansible
apcheckansible-playbook --check --diffdry-run playbook with diffneeds ansible
ainvansible-inventory --graphinventory graphneeds ansible
alintansible-lintlint playbooksneeds ansible