Trusted Cloud 中的 Terraform 與 Google Cloud

HashiCorp Terraform 是一項基礎架構即程式碼 (IaC) 工具,可讓您佈建及管理雲端基礎架構。

您可以搭配Trusted Cloud by S3NS使用 Google Cloud 的 Terraform 供應商。本頁說明 Terraform 的 Trusted Cloud 和 Google Cloud 版本之間的差異。

如要進一步瞭解 Terraform,請參閱 Terraform 總覽和其餘的 Terraform 說明文件。

主要差異

Terraform 的 Trusted Cloud 版本和 Google Cloud 版本之間有些差異。以下列舉幾項顯著差異:

本節其餘部分將提供更詳細的差異清單。 如果您已熟悉 Google Cloud,建議您仔細瞭解這些差異,特別是在設計要在 Trusted Cloud上執行的應用程式之前。此外,也建議您查看 Trusted Cloud 和 Google Cloud 的一般差異

如要使用 Trusted Cloud目前不支援的特定 Terraform 功能,請與Trusted Cloud 支援團隊聯絡。如要接收 Trusted Cloud新功能推出時的通知,請訂閱版本資訊。除非另有規定,否則預覽版功能不適用於 Trusted Cloud。

安全性和存取權控管

政策驗證

Trusted Cloud不支援使用 gcloud beta terraform vet 驗證政策。

不過,您可以使用 Terraform 檢查,在 Trusted Cloud中驗證 Terraform 設定。可能還有其他非 Google Cloud 管理的 Terraform 政策工具,可在 Trusted Cloud中運作。

工作流程和工具

匯出為 Terraform 格式

gcloud beta resource-config bulk-export不支援在 Trusted Cloud中將資源匯出為 Terraform 格式。

或者,您也可以使用 HashiCorp 的「產生設定」export 方法 (位於 Trusted Cloud中)。您或許可以使用其他 Terraform 支援的工具匯出 Terraform 設定,但這些工具並非由 Google Cloud 管理。

下列資訊也可能影響您在 Trusted Cloud by S3NS使用和設計 Terraform 的方式。這些指南包含在 Trusted Cloud中工作的一般資訊,包括文件、安全性和存取權控管、帳單、工具和服務使用情形。

如要瞭解 Trusted Cloud 中的其他服務和功能,以及與 Google Cloud 對應服務的差異,請參閱產品清單