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): scheduling modifications in the next scheduled maintenance window #33447

Closed
1 of 2 tasks
Tietew opened this issue Feb 14, 2025 · 5 comments · Fixed by #33448
Closed
1 of 2 tasks

(rds): scheduling modifications in the next scheduled maintenance window #33447

Tietew opened this issue Feb 14, 2025 · 5 comments · Fixed by #33448
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3

Comments

@Tietew
Copy link
Contributor

Tietew commented Feb 14, 2025

Describe the feature

CloudFormation has added applyImmediately feature to RDS instance.
This allows to schedule modifications in the next scheduled maintenance window.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-applyimmediately
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ModifyInstance.ApplyImmediately.html

Use Case

We can avoid rebooting database instances during update.

Proposed Solution

Add applyImmediately in instance props.

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.178.2

Environment details (OS name and version, etc.)

Linux

@Tietew Tietew added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 14, 2025
@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Feb 14, 2025
@Tietew
Copy link
Contributor Author

Tietew commented Feb 14, 2025

This seems to be applied to database instances only (including instances under Aurora cluster), not cluster.
When I try to upgrade Aurora engine version via CloudFormation, it's applied immediately even if instances have applyImmediately: false. Modifying instance size is scheduled expectedly.

To modify cluster configurations such as Aurora engine version in the next scheduled maintenance window, we must use CLI or management console currently.

rds:ModifyDBCluster API has ApplyImmediately:
https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBCluster.html

AWS::RDS::DBCluster resource doesn't have:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html

@Tietew
Copy link
Contributor Author

Tietew commented Feb 14, 2025

Note Aurora supports zero-downtime patching
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.ZDP.html

@pahud
Copy link
Contributor

pahud commented Feb 14, 2025

Thank you. Let's keep this moving forward from your PR.

@pahud pahud added effort/medium Medium work item – several days of effort p3 and removed needs-triage This issue or PR still needs to be triaged. labels Feb 14, 2025
@mergify mergify bot closed this as completed in #33448 Feb 21, 2025
@mergify mergify bot closed this as completed in be2c7d0 Feb 21, 2025
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

1 similar comment
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants