Skip to content

Commit 0cff00b

Browse files
committed
When a cluster is restored from a snapshot, resourceClusterUpdate is called, passing the engine-version along to ModifyDBCluster. This will always fail, even when the engine-version has not changed. The solution might be to omit the version from the arguments in case the resource has been freshly created.
1 parent 1bc96e1 commit 0cff00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/service/neptune/cluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ func resourceClusterUpdate(d *schema.ResourceData, meta interface{}) error {
638638
requestUpdate = true
639639
}
640640

641-
if d.HasChange("engine_version") {
641+
if !d.IsNewResource() && d.HasChange("engine_version") {
642642
req.EngineVersion = aws.String(d.Get("engine_version").(string))
643643
requestUpdate = true
644644
}

0 commit comments

Comments
 (0)