-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
@aws-cdk/aws-rdsRelated to Amazon Relational DatabaseRelated to Amazon Relational Databaseeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
Serverless V2 provides the ability to set the minimum and maximum capacity of a Serverless V2 DB cluster. Alongside these properties, are the ability to dictate the number of seconds of inactivity that must be reached for the database to be auto paused.
The ability to specify SecondsUntilAutoPause is missing from CDK.
Use Case
To be able to automatically pause my database after a period of inactivity, with the default of 5 minutes being too low.
Proposed Solution
Update
aws-cdk/packages/aws-cdk-lib/aws-rds/lib/cluster.ts
Lines 867 to 877 in e9b5026
| serverlessV2ScalingConfiguration: Lazy.any({ | |
| produce: () => { | |
| if (this.hasServerlessInstance) { | |
| return { | |
| minCapacity: this.serverlessV2MinCapacity, | |
| maxCapacity: this.serverlessV2MaxCapacity, | |
| }; | |
| } | |
| return undefined; | |
| }, | |
| }), |
SecondsUntilAutoPause as per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-serverlessv2scalingconfiguration.html
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
v2.173.2
Environment details (OS name and version, etc.)
Any
PadenZach, marracuene, rteixeirapaulin-godaddy and bestickley
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-rdsRelated to Amazon Relational DatabaseRelated to Amazon Relational Databaseeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2