Skip to content

Commit a611544

Browse files
committed
feat(rdb): clarify engine expects version name not ID
1 parent 1aac8ff commit a611544

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

internal/services/rdb/instance.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ func ResourceInstance() *schema.Resource {
5555
Description: "The type of database instance you want to create",
5656
DiffSuppressFunc: dsf.IgnoreCase,
5757
},
58-
"engine": {
59-
Type: schema.TypeString,
60-
Optional: true,
61-
Computed: true,
62-
Description: "Database's engine version id. Changing this value triggers a blue/green upgrade using MajorUpgradeWorkflow with automatic endpoint migration",
63-
DiffSuppressFunc: dsf.IgnoreCase,
64-
ConflictsWith: []string{
65-
"snapshot_id",
66-
},
58+
"engine": {
59+
Type: schema.TypeString,
60+
Optional: true,
61+
Computed: true,
62+
Description: "Database's engine version name (e.g., 'PostgreSQL-16', 'MySQL-8'). Changing this value triggers a blue/green upgrade using MajorUpgradeWorkflow with automatic endpoint migration",
63+
DiffSuppressFunc: dsf.IgnoreCase,
64+
ConflictsWith: []string{
65+
"snapshot_id",
6766
},
67+
},
6868
"snapshot_id": {
6969
Type: schema.TypeString,
7070
Optional: true,

templates/resources/rdb_instance.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ interruption.
174174

175175
~> **Important** Once your Database Instance reaches `disk_full` status, if you are using `lssd` storage, you should upgrade the `node_type`, and if you are using `bssd` storage, you should increase the volume size before making any other changes to your Database Instance.
176176

177-
- `engine` - (Required) Database Instance's engine version (e.g. `PostgreSQL-11`).
177+
- `engine` - (Required) Database Instance's engine version name (e.g. `PostgreSQL-16`, `MySQL-8`).
178178

179179
~> **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.
180180

0 commit comments

Comments
 (0)