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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36f70aeb3990108958cb01a6fb37992c96107a4679f3854f61c9ad54b1205c9 |
|
MD5 | 46979ba9ecd785b8d41d07e6c3355ae9 |
|
BLAKE2b-256 | d8f8d98482764683e868e8e5e087b3e1d334c6d692ba3b3d85c39ce2fb5edf6e |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b16b280540d52eafb1f473a0e8f29ba3076f46b69bbc9ffb3416a248fee02cc |
|
MD5 | f430afc8fbd369a286ecf91d461175d7 |
|
BLAKE2b-256 | 7939ed5df19c10aa3b92dd69c28471c23772687d470d770eb4bc8a322c680b92 |