刚刚运行terraform plan
,它吐出了需要针对 GCP API 运行的配置。根据计划,它必须摧毁一些实体并重新创建它们。这些模块不相互依赖。下面的示例输出。
只是想知道创建(在这种情况下更像“覆盖”)是否发生在破坏之前,反之亦然,还是完全随机的?
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
- destroy
Terraform will perform the following actions:
+ module.project_01.google_project_service.project_service[0]
id: <computed>
disable_on_destroy: "true"
project: "proj-**"
service: "compute.googleapis.com"
+ module.project_01.google_project_service.project_service[1]
id: <computed>
disable_on_destroy: "true"
project: "proj-**"
service: "cloudresourcemanager.googleapis.com"
+ module.project_01.google_project_service.project_service[2]
id: <computed>
disable_on_destroy: "true"
project: "proj-**"
service: "cloudbilling.googleapis.com"
+ module.project_01.google_project_service.project_service[3]
id: <computed>
disable_on_destroy: "true"
project: "proj-**"
service: "servicenetworking.googleapis.com"
- module.project_01.google_project_service.project_service_billing
- module.project_01.google_project_service.project_service_compute
- module.project_01.google_project_service.project_service_crm
Plan: 4 to add, 0 to change, 3 to destroy.
------------------------------------------------------------------------