Loading tool…
cheatsheet
terraform initInitialize a Terraform working directory
terraform planGenerate and show an execution plan
terraform applyApply the changes required to reach the desired state
terraform destroyDestroy Terraform-managed infrastructure
terraform showInspect the current state or a plan
terraform state listList resources in the state
terraform state show aws_instance.exampleShow attributes of a resource in state
terraform state rm 'aws_instance.example'Remove an instance from the state
terraform import aws_instance.example i-1234567890abcdef0Import existing infrastructure into Terraform state
terraform workspace listList workspaces
terraform workspace new devCreate a new workspace named 'dev'
terraform workspace select devSelect the 'dev' workspace
terraform workspace showShow the current workspace
terraform workspace delete old_workspaceDelete an empty workspace
terraform validateCheck configuration syntax and consistency
terraform fmtRewrite Terraform configuration files to a canonical format
terraform consoleInteractive console for evaluating expressions
terraform outputShow output values from your root module
Get new cheatsheets & tools in your inbox
No spam — just new releases, occasionally.