【发布时间】:2021-02-17 07:31:00
【问题描述】:
问题:
我希望能够使用 Terraform 在 Google Cloud Platform 中精细地创建/修改 PostgreSQL CloudSQL 实例。
目前有一个设置tier = "<instance_type>"
示例:
取自 Terraform 文档
name = "master-instance"
database_version = "POSTGRES_11"
region = "us-central1"
settings {
# Second-generation instance tiers are based on the machine
# type. See argument reference below.
tier = "db-f1-micro"
}
}
总结:
如何修改它以匹配我现在拥有的?我可以创建自定义图像以在 GCP 中使用吗?
我看到有一种方法可以制作自定义图像 here,但我将如何在 Terraform 中使用它?
【问题讨论】:
标签: google-cloud-platform terraform google-cloud-sql terraform-provider-gcp