小编Wes*_*gan的帖子

使用 terraform 和自定义层创建 CloudSQL 实例

问题:

我希望能够使用 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"
  }
}
Run Code Online (Sandbox Code Playgroud)

概括:

我如何修改它以匹配我现在拥有的?我可以创建要在 GCP 中使用的自定义图像吗?

我看到有一种方法可以在此处制作自定义图像,但是我将如何在 Terraform 中使用它?

CloudSQL 中的当前设置

google-cloud-sql google-cloud-platform terraform terraform-provider-gcp

3
推荐指数
1
解决办法
644
查看次数