我希望能够使用 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 中使用它?
google-cloud-sql google-cloud-platform terraform terraform-provider-gcp