You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mmv1/third_party/terraform/website/docs/r/sql_database_instance.html.markdown
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -431,9 +431,16 @@ The `settings` block supports:
431
431
432
432
*`tier` - (Required) The machine type to use. See [tiers](https://cloud.google.com/sql/docs/admin-api/v1beta4/tiers)
433
433
for more details and supported versions. Postgres supports only shared-core machine types,
434
-
and custom machine types such as `db-custom-2-13312`. See the [Custom Machine Type Documentation](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) to learn about specifying custom machine types.
435
-
436
-
*`edition` - (Optional) The edition of the instance, can be `ENTERPRISE` or `ENTERPRISE_PLUS`.
434
+
and custom machine types such as `db-custom-2-13312`. See the [Custom Machine Type Documentation](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) to learn about specifying custom machine types. Note that shared-core and custom machine types are valid only under the `ENTERPRISE` edition; PostgreSQL 16+ instances default to `ENTERPRISE_PLUS` when `edition` is unset (see the `edition` argument below).
435
+
436
+
*`edition` - (Optional) The edition of the instance, can be `ENTERPRISE` or `ENTERPRISE_PLUS`. If `edition`
437
+
is not set, the Cloud SQL API determines the default based on `database_version`: instances with
438
+
`database_version``POSTGRES_16` or later default to `ENTERPRISE_PLUS`, while all others default to
439
+
`ENTERPRISE`. Note that `ENTERPRISE_PLUS` supports only predefined `db-perf-optimized-N-*` machine
440
+
types (the `N2`/`C4A` series); shared-core and custom tiers such as `db-g1-small`, `db-f1-micro`, and
441
+
`db-custom-*` require `edition = "ENTERPRISE"`. Omitting `edition` on a PostgreSQL 16+ instance while
442
+
setting a shared-core or custom `tier` therefore fails at create time with
443
+
`Invalid Tier (...) for (ENTERPRISE_PLUS) Edition`.
437
444
438
445
*`user_labels` - (Optional) A set of key/value user label pairs to assign to the instance.
0 commit comments