provider/aws: Increase timeout for deploying cloudfront distribution (#13319)

This commit is contained in:
Radek Simko 2017-04-04 15:44:17 +01:00 committed by GitHub
parent 26b9d0f191
commit 275972ca59

View File

@ -671,10 +671,10 @@ func resourceAwsCloudFrontDistributionDelete(d *schema.ResourceData, meta interf
// but that might change in the future. // but that might change in the future.
func resourceAwsCloudFrontDistributionWaitUntilDeployed(id string, meta interface{}) error { func resourceAwsCloudFrontDistributionWaitUntilDeployed(id string, meta interface{}) error {
stateConf := &resource.StateChangeConf{ stateConf := &resource.StateChangeConf{
Pending: []string{"InProgress", "Deployed"}, Pending: []string{"InProgress"},
Target: []string{"Deployed"}, Target: []string{"Deployed"},
Refresh: resourceAwsCloudFrontWebDistributionStateRefreshFunc(id, meta), Refresh: resourceAwsCloudFrontWebDistributionStateRefreshFunc(id, meta),
Timeout: 40 * time.Minute, Timeout: 70 * time.Minute,
MinTimeout: 15 * time.Second, MinTimeout: 15 * time.Second,
Delay: 10 * time.Minute, Delay: 10 * time.Minute,
} }