hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

docs(cloudsql): add POSTGRES_16 to version list #19565

Open jenewland1999 opened 4 weeks ago

jenewland1999 commented 4 weeks ago

Community Note

Description

Similar to #14864. It is possible to specify v16, but it is missing from the documentation. PostgreSQL version 16 went GA on June 07 2024.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_sql_database_instance" "main" {
  name             = "main-instance"
  database_version = "POSTGRES_16"
  region           = "us-central1"

  settings {
    # Second-generation instance tiers are based on the machine
    # type. See argument reference below.
    tier = "db-f1-micro"
  }
}

References

No response

b/369163441

BBBmau commented 4 weeks ago

Hi @jenewland1999, currently POSTGRES_16 is not supported based on the API Docs, is this a field that has already been added in and is just missing a documentation update?

jenewland1999 commented 4 weeks ago

Hi @jenewland1999, currently POSTGRES_16 is not supported based on the API Docs, is this a field that has already been added in and is just missing a documentation update?

It would seem their docs are outdated too πŸ˜…. However, I can confirm that creating a DB with v16 is indeed possible using the API. Funnily enough, in their API Explorer if you bring up the autocomplete dropdown it seems to suggest that both v16 and v17 are valid options.

image image
BBBmau commented 4 weeks ago

@jenewland1999 this is a valid request then! Wanna open a PR that adds it in?