2018-09-18 13:16:08 -04:00
|
|
|
# terraform
|
|
|
|
|
|
|
|
> Create and deploy infrastructure as code to cloud providers.
|
2025-04-25 21:19:03 +03:00
|
|
|
> More information: <https://developer.hashicorp.com/terraform/cli/commands>.
|
2018-09-18 13:16:08 -04:00
|
|
|
|
|
|
|
- Initialize a new or existing Terraform configuration:
|
|
|
|
|
|
|
|
`terraform init`
|
|
|
|
|
2020-03-29 03:46:08 -07:00
|
|
|
- Verify that the configuration files are syntactically valid:
|
|
|
|
|
|
|
|
`terraform validate`
|
|
|
|
|
2020-03-27 07:28:23 -07:00
|
|
|
- Format configuration according to Terraform language style conventions:
|
|
|
|
|
|
|
|
`terraform fmt`
|
|
|
|
|
2018-09-18 13:16:08 -04:00
|
|
|
- Generate and show an execution plan:
|
|
|
|
|
|
|
|
`terraform plan`
|
|
|
|
|
|
|
|
- Build or change infrastructure:
|
|
|
|
|
|
|
|
`terraform apply`
|
|
|
|
|
|
|
|
- Destroy Terraform-managed infrastructure:
|
|
|
|
|
|
|
|
`terraform destroy`
|