snippetbashTip
terraform — Create and deploy infrastructure as code to cloud providers. More information: <https://developer.ha
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 initVerify that the configuration files are syntactically valid:
terraform validateFormat configuration according to Terraform language style conventions:
terraform fmtGenerate and show an execution plan:
terraform planBuild or change infrastructure:
terraform applyDestroy all infrastructure in the current directory:
terraform destroyCode Snippets
Initialize a new or existing Terraform configuration
terraform initVerify that the configuration files are syntactically valid
terraform validateFormat configuration according to Terraform language style conventions
terraform fmtGenerate and show an execution plan
terraform planBuild or change infrastructure
terraform applyContext
tldr-pages: common/terraform
Revisions (0)
No revisions yet.