Skip to content

Commit 56d886e

Browse files
Merge branch 'master' into fix-account-tests
2 parents fbe9eb7 + ad0af5e commit 56d886e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/services/mongodb/instance.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ func ResourceInstanceCreate(ctx context.Context, d *schema.ResourceData, m any)
294294

295295
if exist {
296296
restoreSnapshotRequest := &mongodb.RestoreSnapshotRequest{
297+
Region: region,
297298
SnapshotID: regional.ExpandID(snapshotID.(string)).ID,
298299
InstanceName: types.ExpandOrGenerateString(d.Get("name"), "mongodb"),
299300
NodeAmount: *nodeNumber,
@@ -310,6 +311,7 @@ func ResourceInstanceCreate(ctx context.Context, d *schema.ResourceData, m any)
310311
normalizeVersion := NormalizeMongoDBVersion(version)
311312

312313
createReq := &mongodb.CreateInstanceRequest{
314+
Region: region,
313315
ProjectID: d.Get("project_id").(string),
314316
Name: types.ExpandOrGenerateString(d.Get("name"), "mongodb"),
315317
Version: normalizeVersion,

0 commit comments

Comments
 (0)