Skip to content

Commit 6a391f5

Browse files
committed
add create timeout for rds_cluster_endpoint resource
1 parent cd9ca85 commit 6a391f5

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

aws/resource_aws_rds_cluster_endpoint.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ func resourceAwsRDSClusterEndpoint() *schema.Resource {
2828
State: schema.ImportStatePassthrough,
2929
},
3030

31+
Timeouts: &schema.ResourceTimeout{
32+
Create: schema.DefaultTimeout(30 * time.Minute),
33+
},
34+
3135
Schema: map[string]*schema.Schema{
3236
"arn": {
3337
Type: schema.TypeString,
@@ -104,7 +108,7 @@ func resourceAwsRDSClusterEndpointCreate(d *schema.ResourceData, meta interface{
104108

105109
d.SetId(endpointId)
106110

107-
err = resourceAwsRDSClusterEndpointWaitForAvailable(d.Timeout(schema.TimeoutDelete), d.Id(), conn)
111+
err = resourceAwsRDSClusterEndpointWaitForAvailable(d.Timeout(schema.TimeoutCreate), d.Id(), conn)
108112
if err != nil {
109113
return err
110114
}

website/docs/r/rds_cluster_endpoint.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ In addition to all arguments above, the following attributes are exported:
9797
* `id` - The RDS Cluster Endpoint Identifier
9898
* `endpoint` - A custom endpoint for the Aurora cluster
9999

100+
## Timeouts
101+
102+
`aws_rds_cluster_endpoint` provides the following
103+
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
104+
105+
- `create` - (Default `30 minutes`) Used for creating the RDS cluster endpoint.
100106

101107
## Import
102108

0 commit comments

Comments
 (0)