Terraform

install: https://learn.hashicorp.com/tutorials/terraform/install-cli


CLI

操作工作目录

// 初始化目录,会下载和安装provider.
terraform init

terraform get

操作tf文件

// 格式化文件
terraform fmt

// 验证文件
terraform validate

terraform console

操作基础设施:

terraform plan

terraform apply

terraform destroy

检查基础设施:

terraform show
terraform graph
terraform output
terraform state list/show

认证:

terraform login
terraform logout

TF

https://www.terraform.io/language