providers/aws: slow down the wait for state for dbinstance

This commit is contained in:
Jack Pearkes 2014-07-22 18:45:17 -04:00
parent 12d54bd949
commit dde83f7cdd
1 changed files with 6 additions and 4 deletions

View File

@ -107,10 +107,12 @@ func resource_aws_db_instance_create(
"[INFO] Waiting for DB Instance to be available")
stateConf := &resource.StateChangeConf{
Pending: []string{"creating", "backing-up"},
Target: "available",
Refresh: DBInstanceStateRefreshFunc(rs.ID, conn),
Timeout: 10 * time.Minute,
Pending: []string{"creating", "backing-up"},
Target: "available",
Refresh: DBInstanceStateRefreshFunc(rs.ID, conn),
Timeout: 10 * time.Minute,
MinTimeout: 10 * time.Second,
Delay: 30 * time.Second, // Wait 30 secs before starting
}
// Wait, catching any errors