Fixes #14620 Handle migration of data when restoring db cluster from snapshot (#14622)

Add `preparing-data-migration` to the list of pending statuses when creating a cluster from a snapshot using a different engine.
This commit is contained in:
Techbrunch 2017-05-18 13:23:55 +02:00 committed by Paul Stack
parent 5efe3ad6b3
commit 71e5602d79
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ func resourceAwsRDSClusterCreate(d *schema.ResourceData, meta interface{}) error
log.Println("[INFO] Waiting for RDS Cluster to be available") log.Println("[INFO] Waiting for RDS Cluster to be available")
stateConf := &resource.StateChangeConf{ stateConf := &resource.StateChangeConf{
Pending: []string{"creating", "backing-up", "modifying"}, Pending: []string{"creating", "backing-up", "modifying", "preparing-data-migration"},
Target: []string{"available"}, Target: []string{"available"},
Refresh: resourceAwsRDSClusterStateRefreshFunc(d, meta), Refresh: resourceAwsRDSClusterStateRefreshFunc(d, meta),
Timeout: d.Timeout(schema.TimeoutCreate), Timeout: d.Timeout(schema.TimeoutCreate),