provider/aws: Less aggressive API rate

This commit is contained in:
Armon Dadgar 2014-07-28 12:10:28 -04:00
parent ab5b48278a
commit bc64366a92
1 changed files with 12 additions and 8 deletions

View File

@ -85,6 +85,8 @@ func resource_aws_instance_create(
Target: "running",
Refresh: InstanceStateRefreshFunc(ec2conn, instance.InstanceId),
Timeout: 10 * time.Minute,
Delay: 10 * time.Second,
MinTimeout: 3 * time.Second,
}
instanceRaw, err := stateConf.WaitForState()
@ -163,6 +165,8 @@ func resource_aws_instance_destroy(
Target: "terminated",
Refresh: InstanceStateRefreshFunc(ec2conn, s.ID),
Timeout: 10 * time.Minute,
Delay: 10 * time.Second,
MinTimeout: 3 * time.Second,
}
_, err := stateConf.WaitForState()