Skip to content

Commit

Permalink
When a cluster is restored from a snapshot, resourceClusterUpdate is …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
danielcweber committed Jul 26, 2022
1 parent 1bc96e1 commit 0cff00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/neptune/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ func resourceClusterUpdate(d *schema.ResourceData, meta interface{}) error {
requestUpdate = true
}

if d.HasChange("engine_version") {
if !d.IsNewResource() && d.HasChange("engine_version") {
req.EngineVersion = aws.String(d.Get("engine_version").(string))
requestUpdate = true
}
Expand Down

0 comments on commit 0cff00b

Please sign in to comment.