Terraform cli
básicos
- init : Initialize a new or existing Terraform configuration
- validate : Validates the Terraform files
- plan : Generate and show an execution plan
- fmt : Rewrites config files to canonical format
- apply : Builds or changes infrastructure
- graph : Create a visual graph of Terraform resources
- output : Read an output from a state file
- destroy : Destroy Terraform-managed infrastructure
parámetros
-target <OBJECT>.<NAME>
: afecta solo ese objeto.
otros
- refresh : Update local state file against real resources
- show : Inspect Terraform state or plan
- taint : Manually mark a resource for recreation
- untaint : Manually unmark a resource as tainted
- debug : Debug output management (experimental)
- force-unlock : Manually unlock the terraform state
- state : Advanced state management
autocomplete
terraform --install-autocomplete
: bash/zshterraform --uninstall-autocomplete