支援的 Google Cloud 類型提供者

如要使用 Google Cloud類型提供者建立資源,請在設定中使用下列語法:

resources:
- name: example-resource
  type: gcp-types/[PROVIDER]:[RESOURCE]
  properties:
    ...

其中 [PROVIDER] 是 Google Cloud 服務,例如 compute-v1,而 [RESOURCE] 是您要建立的資源,例如 instances

舉例來說,如要使用 Compute Engine v1 API 建立保留的 IP 位址,請使用下列語法:

type: gcp-types/compute-v1:addresses

以下是支援部署的 Google Cloud 類型提供者清單。如要加快部署的建立速度,建議您前往 Deployment Manager GitHub 存放區,找到 Cloud Foundation Toolkit 專案,直接採用可供實際工作環境作業的範本。

視服務及其推出階段而定,您或許可以在部署中建立其他資源類型。如需完整的資源類型清單 (包括目前仍為 Alpha 版的資源),請執行下列指令:

gcloud beta deployment-manager types list --project gcp-types

您也可以建立自己的類型提供者,例如為第三方 API 建立類型提供者。如需建立類型提供者的總覽資訊,請參閱與 Deployment Manager 進行整合一文。

服務 類型提供者
App Engine gcp-types/appengine-v1 資源程式碼片段
Access Context Manager gcp-types/accesscontextmanager-v1beta 資源程式碼片段
BigQuery gcp-types/bigquery-v2 資源程式碼片段
Bigtable gcp-types/bigtableadmin-v2 資源程式碼片段
Cloud Run 函式

gcp-types/cloudfunctions-v1

資源程式碼片段
Cloud Key Management Service gcp-types/cloudkms-v1 資源程式碼片段
Resource Manager (v1) gcp-types/cloudresourcemanager-v1 資源程式碼片段
Resource Manager (v2) gcp-types/cloudresourcemanager-v2 資源程式碼片段
Compute Engine (Alpha 版) gcp-types/compute-alpha 資源程式碼片段
Compute Engine (Beta 版) gcp-types/compute-beta 資源程式碼片段
Compute Engine gcp-types/compute-v1 資源程式碼片段
Google Kubernetes Engine

gcp-types/container-v1

資源程式碼片段
Google Kubernetes Engine (v1 Beta 版 1) gcp-types/container-v1beta1 資源程式碼片段
Dataproc gcp-types/dataproc-v1 資源程式碼片段
Cloud DNS gcp-types/dns-v1 資源程式碼片段
Filestore gcp-types/file-v1beta1 資源程式碼片段
Identity and Access Management gcp-types/iam-v1 資源程式碼片段
Cloud Logging gcp-types/logging-v2 資源程式碼片段
Cloud Monitoring gcp-types/monitoring-v3 資源程式碼片段
Pub/Sub gcp-types/pubsub-v1 資源程式碼片段
Memorystore gcp-types/redis-v1 資源程式碼片段
Memorystore (v1 Beta 版 1) gcp-types/redis-v1beta1 資源程式碼片段
Cloud Runtime Configuration API gcp-types/runtimeconfig-v1beta1 資源程式碼片段
Service Management gcp-types/servicemanagement-v1 資源程式碼片段
Spanner gcp-types/spanner-v1 資源程式碼片段
Cloud SQL (v1 Beta 版 4) gcp-types/sqladmin-v1beta4 資源程式碼片段
Cloud Storage gcp-types/storage-v1 資源程式碼片段