From e36f424af331d15a8342ce15fe5fc384264e5bb4 Mon Sep 17 00:00:00 2001 From: Justin Nauman Date: Tue, 15 Nov 2016 09:11:28 -0600 Subject: [PATCH] GH-7311 - Increasing deletion timeout wait - Per our discussion around the PR to increase this initially, we weren't sure if 1 minute would be sufficient. Well, it turns out it wasn't for me today (we don't delete these often so not sure how often people run into this). Picking another somewhat arbitrary value of 5 minutes in the hopes that it will be sufficient (today it took a little over 2 minutes). --- builtin/providers/aws/resource_aws_db_option_group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_db_option_group.go b/builtin/providers/aws/resource_aws_db_option_group.go index 81c81faf3..5c68e7bd3 100644 --- a/builtin/providers/aws/resource_aws_db_option_group.go +++ b/builtin/providers/aws/resource_aws_db_option_group.go @@ -280,7 +280,7 @@ func resourceAwsDbOptionGroupDelete(d *schema.ResourceData, meta interface{}) er } log.Printf("[DEBUG] Delete DB Option Group: %#v", deleteOpts) - ret := resource.Retry(1*time.Minute, func() *resource.RetryError { + ret := resource.Retry(5*time.Minute, func() *resource.RetryError { _, err := rdsconn.DeleteOptionGroup(deleteOpts) if err != nil { if awsErr, ok := err.(awserr.Error); ok {