providers/aws: slow down the wait for state for dbinstance
This commit is contained in:
parent
12d54bd949
commit
dde83f7cdd
|
@ -107,10 +107,12 @@ func resource_aws_db_instance_create(
|
||||||
"[INFO] Waiting for DB Instance to be available")
|
"[INFO] Waiting for DB Instance to be available")
|
||||||
|
|
||||||
stateConf := &resource.StateChangeConf{
|
stateConf := &resource.StateChangeConf{
|
||||||
Pending: []string{"creating", "backing-up"},
|
Pending: []string{"creating", "backing-up"},
|
||||||
Target: "available",
|
Target: "available",
|
||||||
Refresh: DBInstanceStateRefreshFunc(rs.ID, conn),
|
Refresh: DBInstanceStateRefreshFunc(rs.ID, conn),
|
||||||
Timeout: 10 * time.Minute,
|
Timeout: 10 * time.Minute,
|
||||||
|
MinTimeout: 10 * time.Second,
|
||||||
|
Delay: 30 * time.Second, // Wait 30 secs before starting
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait, catching any errors
|
// Wait, catching any errors
|
||||||
|
|
Loading…
Reference in New Issue