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.36k stars 1.75k forks source link

Add psc_Auto_Connections in google_sql_database_instance.psc_config #20343

Open imrannayer opened 1 week ago

imrannayer commented 1 week ago

Community Note

Description

Add psc_Auto_Connections in google_sql_database_instance.psc_config

New or Affected Resource(s)

Potential Terraform Configuration

psc_config {
  psc_enabled = true
  allowed_consumer_projects = ["allowed-consumer-project-name"]
  pscAutoConnections {
     consumer_Project = ""
     consumer_Network = ""
  }
}

References

https://cloud.google.com/sql/docs/postgres/configure-private-service-connect#create-cloud-sql-instance-psc-enabled-2

b/379652027

BBBmau commented 4 days ago

After reviewing, I notice that the API Reference does not contain pscAutoConnections however I do see that it's present in the docs mentioning the use of psc_auto_connections

Relevant Docs where it's referenced: https://cloud.google.com/sql/docs/postgres/configure-private-service-connect#create-cloud-sql-instance-psc-enabled-2

API Reference where it's not mentioned: https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/instances#PscConfig

Even though it's not in the API Reference it is still most likely supported.