2018-09-18 18:16:08 +01:00
|
|
|
# terraform
|
|
|
|
|
|
|
|
> Create and deploy infrastructure as code to cloud providers.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://www.terraform.io/>.
|
2018-09-18 18:16:08 +01:00
|
|
|
|
|
|
|
- Initialize a new or existing Terraform configuration:
|
|
|
|
|
|
|
|
`terraform init`
|
|
|
|
|
2020-03-29 11:46:08 +01:00
|
|
|
- Verify that the configuration files are syntactically valid:
|
|
|
|
|
|
|
|
`terraform validate`
|
|
|
|
|
2020-03-27 14:28:23 +00:00
|
|
|
- Format configuration according to Terraform language style conventions:
|
|
|
|
|
|
|
|
`terraform fmt`
|
|
|
|
|
2018-09-18 18:16:08 +01:00
|
|
|
- Generate and show an execution plan:
|
|
|
|
|
|
|
|
`terraform plan`
|
|
|
|
|
|
|
|
- Build or change infrastructure:
|
|
|
|
|
|
|
|
`terraform apply`
|
|
|
|
|
|
|
|
- Destroy Terraform-managed infrastructure:
|
|
|
|
|
|
|
|
`terraform destroy`
|