provider/aws: Raise timeout for deleting APIG REST API (#13414)
This commit is contained in:
parent
df5dfb10c8
commit
8f7171fc76
|
@ -172,7 +172,7 @@ func resourceAwsApiGatewayRestApiDelete(d *schema.ResourceData, meta interface{}
|
||||||
conn := meta.(*AWSClient).apigateway
|
conn := meta.(*AWSClient).apigateway
|
||||||
log.Printf("[DEBUG] Deleting API Gateway: %s", d.Id())
|
log.Printf("[DEBUG] Deleting API Gateway: %s", d.Id())
|
||||||
|
|
||||||
return resource.Retry(5*time.Minute, func() *resource.RetryError {
|
return resource.Retry(10*time.Minute, func() *resource.RetryError {
|
||||||
_, err := conn.DeleteRestApi(&apigateway.DeleteRestApiInput{
|
_, err := conn.DeleteRestApi(&apigateway.DeleteRestApiInput{
|
||||||
RestApiId: aws.String(d.Id()),
|
RestApiId: aws.String(d.Id()),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue