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.29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dd98a8f786020e1ec329c8237d42bcd1856c857e04ce2ab39a08bd1d4f89e7c |
|
MD5 | 17d3200f38f7eeac9a91ab56642733b8 |
|
BLAKE2b-256 | 46dd3f921a1d90f604984e354db5c9732176fd1783c6b5d16b36dd70310e3fa5 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d326c5cf041d47b800b089a057aa458c7743719495a7dc4d31b30c27e7ebb04 |
|
MD5 | 40bc19ca74898e13d4ec0e3368559730 |
|
BLAKE2b-256 | 8e59c4443743737da3b4a902f40594c872dd0176c42a37ae2d3d30f99c069a8a |