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 @gammarer/aws-rds-database-running-scheduler
# or
yarn add @gammarer/aws-rds-database-running-scheduler
Python
pip install gammarer.aws-rds-database-running-scheduler
Example
npm install @gammarer/aws-rds-database-running-scheduler
import { RdsDatabaseRunningScheduler, Type } from '@gammarer/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
Release history Release notifications | RSS feed
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 gammarer.aws-rds-database-running-scheduler-0.3.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5353e83c96a2ef5f36fdab31720aa3877a599e95b193214e77b757ea2d389e9c |
|
MD5 | 6c4ac4acb58bee2341b72f95a2d4d771 |
|
BLAKE2b-256 | f4c5e188238a9c8044a3cb34a70bd709b908f453dfa749055fe9fd06c5d435f5 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd7aebef5e97978bda9f38cd949d809fab473056c3f0508cabb60be0f72a152 |
|
MD5 | eab7b1d065745b725c58b2120bb70d6d |
|
BLAKE2b-256 | 9c1aa9487db5a53f1035fe17f221499461a10058a66ab6726b5758d29a0da460 |