@@ -231,8 +231,8 @@ func resourceMongoDBAtlasSearchIndexUpdate(ctx context.Context, d *schema.Resour
231
231
if d .Get ("wait_for_index_build_completion" ).(bool ) {
232
232
timeout := d .Timeout (schema .TimeoutCreate )
233
233
stateConf := & resource.StateChangeConf {
234
- Pending : []string {"CREATING" , " IN_PROGRESS" , "NOT_VALID" , "PENDING " },
235
- Target : []string {"VALID " },
234
+ Pending : []string {"IN_PROGRESS" , "MIGRATING " },
235
+ Target : []string {"STEADY " },
236
236
Refresh : resourceSearchIndexRefreshFunc (ctx , clusterName , projectID , dbSearchIndexRes .IndexID , conn ),
237
237
Timeout : timeout ,
238
238
MinTimeout : 1 * time .Minute ,
@@ -398,8 +398,8 @@ func resourceMongoDBAtlasSearchIndexCreate(ctx context.Context, d *schema.Resour
398
398
if d .Get ("wait_for_index_build_completion" ).(bool ) {
399
399
timeout := d .Timeout (schema .TimeoutCreate )
400
400
stateConf := & resource.StateChangeConf {
401
- Pending : []string {"CREATING" , " IN_PROGRESS" , "NOT_VALID" , "PENDING " },
402
- Target : []string {"VALID " },
401
+ Pending : []string {"IN_PROGRESS" , "MIGRATING " },
402
+ Target : []string {"STEADY " },
403
403
Refresh : resourceSearchIndexRefreshFunc (ctx , clusterName , projectID , dbSearchIndexRes .IndexID , conn ),
404
404
Timeout : timeout ,
405
405
MinTimeout : 1 * time .Minute ,
0 commit comments