Terraform-基本命令:terraform plan
terraform plan
terraform plan 命令用于创建执行前的计划,是 terraform apply 执行前的一个预览方式,可以检查当前的变更是否符合预期。terraform plan 命令将检测云上资源的属性和状态文件是否存在差异,如果不一致,Terraform 会将差异结果显示在命令下方:
$ terraform planRefreshing Terraform state in-memory prior to plan...The refreshed state will be used to calculate this plan, but will not bepersisted to local or state storage....Plan: 1 to add, 0 to change, 1 to destroy....
如果 Terraform 未检测到资源或根模块的更改,则 terraform plan 会输出如下提示:
$ terraform plan...No changes. Infrastructure is up-to-date.This means that Terraform did not detect ant differences between yourconfiguration and real physical resources that exist. As a result, noactions need to be performed.
默认情况下,terraform plan 命令首先会从远端更新资源的属性。在管理资源较多的情况下,该操作会耗时较长,我们可以使用 "-refresh=false" 选项来禁止更新。
- GaussDB命令_GaussDB数据库命令_高斯数据库命令-华为云
- GaussDB查版本命令_GaussDB命令参考_高斯数据库查版本命令-华为云
- API Explorer 产品介绍与快速入门
- GaussDB队列机制_GaussDB数据库基本命令_高斯数据库队列机制_华为云
- MySQL创建数据库命令_MySQL查看数据库命令_如何安装MySQL数据库
- GaussDB(DWS)常用SQL_常用SQL命令_SQL语法
- CCI基本概念_华为云CCI概念_云容器实例基本概念
- WMS下载_WMS仓储_WMS系统的基本功能
- mysql数据库入门_mysql数据库备份命令_mysql数据库导出
- CDN是什么意思_CDN域名配置_CDN基本概念