provider/aws: Less aggressive API rate
This commit is contained in:
parent
ab5b48278a
commit
bc64366a92
|
@ -85,6 +85,8 @@ func resource_aws_instance_create(
|
||||||
Target: "running",
|
Target: "running",
|
||||||
Refresh: InstanceStateRefreshFunc(ec2conn, instance.InstanceId),
|
Refresh: InstanceStateRefreshFunc(ec2conn, instance.InstanceId),
|
||||||
Timeout: 10 * time.Minute,
|
Timeout: 10 * time.Minute,
|
||||||
|
Delay: 10 * time.Second,
|
||||||
|
MinTimeout: 3 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
instanceRaw, err := stateConf.WaitForState()
|
instanceRaw, err := stateConf.WaitForState()
|
||||||
|
@ -163,6 +165,8 @@ func resource_aws_instance_destroy(
|
||||||
Target: "terminated",
|
Target: "terminated",
|
||||||
Refresh: InstanceStateRefreshFunc(ec2conn, s.ID),
|
Refresh: InstanceStateRefreshFunc(ec2conn, s.ID),
|
||||||
Timeout: 10 * time.Minute,
|
Timeout: 10 * time.Minute,
|
||||||
|
Delay: 10 * time.Second,
|
||||||
|
MinTimeout: 3 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := stateConf.WaitForState()
|
_, err := stateConf.WaitForState()
|
||||||
|
|
Loading…
Reference in New Issue