From 1939143888cf656b538c78d0a03d995c1d815042 Mon Sep 17 00:00:00 2001 From: Angie Pinilla Date: Thu, 27 Aug 2020 17:06:58 -0400 Subject: [PATCH] add create timeout for rds_cluster_endpoint resource --- aws/resource_aws_rds_cluster_endpoint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws/resource_aws_rds_cluster_endpoint.go b/aws/resource_aws_rds_cluster_endpoint.go index 7523e3beb51..6e830248705 100644 --- a/aws/resource_aws_rds_cluster_endpoint.go +++ b/aws/resource_aws_rds_cluster_endpoint.go @@ -14,6 +14,7 @@ import ( ) const ( + AWSRDSClusterEndpointCreateTimeout = 30 * time.Minute AWSRDSClusterEndpointRetryDelay = 5 * time.Second AWSRDSClusterEndpointRetryMinTimeout = 3 * time.Second ) @@ -104,7 +105,7 @@ func resourceAwsRDSClusterEndpointCreate(d *schema.ResourceData, meta interface{ d.SetId(endpointId) - err = resourceAwsRDSClusterEndpointWaitForAvailable(d.Timeout(schema.TimeoutDelete), d.Id(), conn) + err = resourceAwsRDSClusterEndpointWaitForAvailable(AWSRDSClusterEndpointCreateTimeout, d.Id(), conn) if err != nil { return err }