Skip to content

docs: clarify google_sql_database_instance edition default (PG16 → ENTERPRISE_PLUS) and tier/edition compatibility#18014

Open
pete-csyn wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
pete-csyn:docs-cloud-sql-edition-default
Open

docs: clarify google_sql_database_instance edition default (PG16 → ENTERPRISE_PLUS) and tier/edition compatibility#18014
pete-csyn wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
pete-csyn:docs-cloud-sql-edition-default

Conversation

@pete-csyn

Copy link
Copy Markdown

Summary

Docs-only clarification for google_sql_database_instance. The edition argument doc currently reads only:

edition - (Optional) The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.

It does not mention that, since the client-side ENTERPRISE default was removed (#19977), omitting edition lets the Cloud SQL API choose the default — and for POSTGRES_16+ that default is ENTERPRISE_PLUS. ENTERPRISE_PLUS accepts only db-perf-optimized-N-* (N2/C4A) tiers, so a config that sets a shared-core or custom tier (db-g1-small, db-f1-micro, db-custom-*) without edition now fails at apply with:

Error 400: Invalid request: Invalid Tier (db-g1-small) for (ENTERPRISE_PLUS) Edition.
Use a predefined Tier like db-perf-optimized-N-* instead.

The existing tier doc actively points PostgreSQL users at exactly those shared-core/custom tiers, with no cross-reference to the edition interaction — so the docs steer users into the failure. This was reported in hashicorp/terraform-provider-google#20498 (closed without a docs fix), where the community-confirmed remediation is edition = "ENTERPRISE".

This PR adds that context to both the edition and tier argument descriptions. No code/schema change.

Release Note

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jun 19, 2026
@google-cla

google-cla Bot commented Jun 19, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions Bot requested a review from trodge June 19, 2026 02:44
@github-actions

Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@trodge, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants