AWS RDS Database Running Scheduler
Project description
AWS RDS Database Running Scheduler
This is an AWS CDK Construct to make RDS Database running schedule (only running while working hours(start/stop)).
Fixed
- RDS Aurora Cluster
- RDS Instance
Resources
This construct creating resource list.
- EventBridge Scheduler execution role
- EventBridge Scheduler
Install
TypeScript
npm install aws-rds-database-running-scheduler
or
yarn add aws-rds-database-running-scheduler
Python
pip install aws-rds-database-running-scheduler
Example
npm install aws-rds-database-running-scheduler
import { RdsDatabaseRunningScheduler, Type } from 'aws-rds-database-running-scheduler';
new RdsDatabaseRunningScheduler(stack, 'RdsDatabaseRunningScheduler', {
type: Type.CLUSTER, // TYPE.CLUSTER or TYPE.INSTANCE
identifiers: {
['db-cluster-1a']: { // cluster identirier
startSchedule: {
timezone: 'Asia/Tokyo',
minute: '55',
hour: '8',
week: 'MON-FRI',
},
stopSchedule: {
timezone: 'Asia/Tokyo',
minute: '5',
hour: '19',
week: 'MON-FRI',
},
},
},
})
License
This project is licensed under the Apache-2.0 License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-rds-database-running-scheduler-0.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42a9e3a1867460572605dfb81456f4918f8cf1dd582e599b99db13fab5158a9 |
|
MD5 | 73295f83421014243fecc168e2e53e98 |
|
BLAKE2b-256 | 2e03af5d9fb09b559dddee71e3580a52647d62864c6dd25bcd492e41a8625de2 |
Close
Hashes for aws_rds_database_running_scheduler-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08dc1001b87287c5ff079952f629b7b8ec7ed9abf6c3ae229d0b51871a8bfa84 |
|
MD5 | 1eb0a7fc2753404a02d67e6ab180f74d |
|
BLAKE2b-256 | 74232ce20307e1111774d206890d79f696ceeb6da766e685b028e6e95bbf2699 |