Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rds.DatabaseCluster: Support SecondsUntilAutoPause setting in Aurora Serverless V2 #32280

Open
2 tasks
yukihato opened this issue Nov 26, 2024 · 6 comments
Open
2 tasks
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2

Comments

@yukihato
Copy link

Describe the feature

Since ACU can now be set to 0 in the following PR, I would like the SecondsUntilAutoPause setting to be supported as well.

#32231

reference: create-db-cluster api
https://docs.aws.amazon.com/cli/latest/reference/rds/create-db-cluster.html

Use Case

Use to set SecondsUntilAutoPause to something other than the default of 5 minutes.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.171.0

Environment details (OS name and version, etc.)

Node 22

@yukihato yukihato added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Nov 26, 2024
@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Nov 26, 2024
@ashishdhingra ashishdhingra self-assigned this Nov 26, 2024
@ashishdhingra ashishdhingra added p2 investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Nov 26, 2024
@ashishdhingra
Copy link
Contributor

ashishdhingra commented Nov 26, 2024

@yukihato Good morning. Thanks for opening the issue. Looking at documentation for AWS::RDS::DBCluster ScalingConfiguration, SecondsUntilAutoPause is supported for Aurora Serverless v1 DB cluster. Looking at corresponding property AWS::RDS::DBCluster ServerlessV2ScalingConfiguration for Aurora Serverless v2 DB cluster, it only supports MaxCapacity and MinCapacity properties. The PR #32231 adds support for scaling to zero capacity for Amazon Aurora Serverless v2. Please re-validate your feature request.

Thanks,
Ashish

@ashishdhingra ashishdhingra added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Nov 26, 2024
@yukihato
Copy link
Author

@ashishdhingra Thanks for confirming. The SecondsUntilAutoPause options appear to be supported by the API, as shown in the API documentation below. (Also, these are values that can be changed in the actual AWS console.)
As you point out, it doesn't seem to be supported in CloudFormation yet, so I guess we are waiting for that to be addressed.

https://docs.aws.amazon.com/cli/latest/reference/rds/create-db-cluster.html

image image

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Nov 27, 2024
@ashishdhingra
Copy link
Contributor

@yukihato Thanks for pointing out. We should refer AWS CLI V2 documentation at https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/create-db-cluster.html. The API documentation at ServerlessV2ScalingConfiguration also appears to mention support for SecondsUntilAutoPause property. This needs support from CloudFormation. Could you please open an issue at https://github.com/aws-cloudformation/cloudformation-coverage-roadmap for the CloudFormation team? This way you would get email notifications for any progress made.

Thanks,
Ashish

@ashishdhingra ashishdhingra added needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. effort/small Small work item – less than a day of effort labels Nov 27, 2024
@ashishdhingra ashishdhingra removed their assignment Nov 27, 2024
@yukihato
Copy link
Author

@ashishdhingra Thank you. I already submitted my request yesterday.
(As far as I can tell from checking the CloudFormation code, it is possible that perhaps the documentation has just not been modified to support it.)

aws-cloudformation/cloudformation-coverage-roadmap#2202

@yvele
Copy link

yvele commented Dec 2, 2024

As far as I can tell from checking the CloudFormation code, it is possible that perhaps the documentation has just not been modified to support it.

@yukihato I've just tried with great hope, but unfortunately:

Properties validation failed for resource RdsCluster with message: [#/ServerlessV2ScalingConfiguration: extraneous key [SecondsUntilAutoPause] is not permitted]

@yukihato
Copy link
Author

yukihato commented Dec 3, 2024

@yvele Thanks for trying! I must have been mistaken, sorry. We'll just have to wait for CloudFormation to take care of this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2
Projects
None yet
Development

No branches or pull requests

3 participants