Skip to content

Commit

Permalink
add create timeout for rds_cluster_endpoint resource
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Aug 27, 2020
1 parent cd9ca85 commit 1939143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aws/resource_aws_rds_cluster_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
)

const (
AWSRDSClusterEndpointCreateTimeout = 30 * time.Minute
AWSRDSClusterEndpointRetryDelay = 5 * time.Second
AWSRDSClusterEndpointRetryMinTimeout = 3 * time.Second
)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 1939143

Please sign in to comment.