HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

terraform — Create and deploy infrastructure as code to cloud providers. More information: <https://developer.ha

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandinfrastructureandclicodeterraformdeploy

Problem

How to use the terraform command: Create and deploy infrastructure as code to cloud providers. More information: <https://developer.hashicorp.com/terraform/cli/commands>.

Solution

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 all infrastructure in the current directory:
terraform destroy

Code Snippets

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

Context

tldr-pages: common/terraform

Revisions (0)

No revisions yet.