本頁說明如何啟用及停用 Infrastructure Manager。
如要瞭解 Infra Manager 的費用,請參閱「定價」一文。
啟用服務
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
- 如果尚未安裝 Google Cloud CLI,請安裝並初始化。如要更新現有安裝的 Google Cloud CLI 元件,請執行下列指令:
gcloud components update
。如要查看 gcloud CLI 版本,請執行下列指令:
gcloud version
- 從Google Cloud 控制台啟用 API,或執行下列
gcloud
指令:gcloud services enable config.googleapis.com
- 選用:如要搭配 Infra Manager 使用配額驗證,請從 Google Cloud 控制台啟用 API,或執行下列
gcloud
指令:gcloud services enable cloudquotas.googleapis.com
- 進一步瞭解如何搭配使用 Terraform 與 Google Cloud。
- 使用 Infra Manager 部署基礎架構。
- 更新部署作業。
- 查看部署作業的狀態。
停用服務
停用 Infra Manager API 後,專案中仍會保留所有相關資源。停用後,您就無法使用這項服務,對專案中的部署作業和資源進行任何變更。
重新啟用 API 後,您就能繼續使用服務,方式與首次啟用 API 時相同。
如要從 Google Cloud 控制台停用 API,請按照下列步驟操作:
主控台
gcloud
執行下列指令,在目前的專案中停用 API:
gcloud services disable config.googleapis.com