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 6a391f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aws/resource_aws_rds_cluster_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func resourceAwsRDSClusterEndpoint() *schema.Resource {
State: schema.ImportStatePassthrough,
},

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
},

Schema: map[string]*schema.Schema{
"arn": {
Type: schema.TypeString,
Expand Down Expand Up @@ -104,7 +108,7 @@ func resourceAwsRDSClusterEndpointCreate(d *schema.ResourceData, meta interface{

d.SetId(endpointId)

err = resourceAwsRDSClusterEndpointWaitForAvailable(d.Timeout(schema.TimeoutDelete), d.Id(), conn)
err = resourceAwsRDSClusterEndpointWaitForAvailable(d.Timeout(schema.TimeoutCreate), d.Id(), conn)
if err != nil {
return err
}
Expand Down
6 changes: 6 additions & 0 deletions website/docs/r/rds_cluster_endpoint.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ In addition to all arguments above, the following attributes are exported:
* `id` - The RDS Cluster Endpoint Identifier
* `endpoint` - A custom endpoint for the Aurora cluster

## Timeouts

`aws_rds_cluster_endpoint` provides the following
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:

- `create` - (Default `30 minutes`) Used for creating the RDS cluster endpoint.

## Import

Expand Down

0 comments on commit 6a391f5

Please sign in to comment.