Automatically stop and start an Amazon RDS DB instance in a CDK app


Hi, I just read the document said that we can automatically stop and start an RDS DB instance on a specific schedule. So, I would like to know how to do the same job via CDK? My schedule requirement is like stopping at 0am and starting at 9am each day. Thanks!

1 Answer
Accepted Answer

Based on that document, the scheduling is done by System Manager Maintenance Window, There is CDK for that service although it is in L1 Construct (ie. uses the basic Cloudformation structure). Here is the CDK reference:

Alternatively, you can run EventBridge + Lambda to do custom scheduling:

profile pictureAWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions