mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
678 B
Plaintext
34 lines
678 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# terraform
|
|
|
|
> Create and deploy infrastructure as code to cloud providers.
|
|
> More information: <https://developer.hashicorp.com/terraform/cli/commands>.
|
|
|
|
- Initialize a new or existing Terraform configuration:
|
|
|
|
`terraform init`
|
|
|
|
- Verify that the configuration files are syntactically valid:
|
|
|
|
`terraform validate`
|
|
|
|
- Format configuration according to Terraform language style conventions:
|
|
|
|
`terraform fmt`
|
|
|
|
- Generate and show an execution plan:
|
|
|
|
`terraform plan`
|
|
|
|
- Build or change infrastructure:
|
|
|
|
`terraform apply`
|
|
|
|
- Destroy Terraform-managed infrastructure:
|
|
|
|
`terraform destroy`
|