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
value = scaleway_rdb_instance.main.upgradable_versions
97
+
}
98
+
99
+
# To upgrade to PostgreSQL 15, simply change the engine value
100
+
# This will trigger a blue/green upgrade with automatic endpoint migration
101
+
# resource "scaleway_rdb_instance" "main" {
102
+
# name = "my-database"
103
+
# node_type = "DB-DEV-S"
104
+
# engine = "PostgreSQL-15" # Changed from PostgreSQL-14
105
+
# is_ha_cluster = false
106
+
# disable_backup = true
107
+
# user_name = "my_user"
108
+
# password = "thiZ_is_v&ry_s3cret"
109
+
# }
110
+
```
111
+
111
112
### Examples of endpoint configuration
112
113
113
114
Database Instances can have a maximum of 1 public endpoint and 1 private endpoint. They can have both, or none.
@@ -174,7 +175,7 @@ interruption.
174
175
175
176
-`engine` - (Required) Database Instance's engine version (e.g. `PostgreSQL-11`).
176
177
177
-
~> **Important** Updates to `engine` will perform a blue/green upgrade using a snapshotand endpoint migration. This ensures minimal downtime but any writes between the snapshot and the switch will be lost. Available upgrade versions can be found in the `upgradable_versions` computed attribute.
178
+
~> **Important** Updates to `engine` will perform a blue/green upgrade using `MajorUpgradeWorkflow`. This creates a new instance from a snapshot, migrates endpoints automatically, and updates the Terraform state with the new instance ID. The upgrade ensures minimal downtime but **any writes between the snapshot and the endpoint migration will be lost**. Use the `upgradable_versions` computed attribute to check available versions for upgrade.
178
179
179
180
-`volume_type` - (Optional, default to `lssd`) Type of volume where data are stored (`lssd`, `sbs_5k` or `sbs_15k`).
180
181
@@ -275,12 +276,12 @@ are of the form `{region}/{id}`, e.g. `fr-par/11111111-1111-1111-1111-1111111111
275
276
-`id` - The ID of the IPv4 address resource.
276
277
-`address` - The private IPv4 address.
277
278
-`certificate` - Certificate of the Database Instance.
278
-
-`upgradable_versions` - List of available engine versions for upgrade.
279
-
-`id` - Version ID for upgrade requests.
280
-
-`name` - Engine name.
281
-
-`version` - Version string.
282
-
-`minor_version` - Minor version string.
283
279
-`organization_id` - The organization ID the Database Instance is associated with.
280
+
-`upgradable_versions` - List of available engine versions for upgrade. Each version contains:
281
+
-`id` - Version ID to use in upgrade requests.
282
+
-`name` - Engine version name (e.g., `PostgreSQL-15`).
283
+
-`version` - Version string (e.g., `15.5`).
284
+
-`minor_version` - Minor version string (e.g., `15.5.0`).
0 commit comments