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.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37dcf7e2683aa5a38290e89cae73ebb6de50858695c23c8fc8f116d5994222d7 |
|
MD5 | 413abcfb13b64f2aa6f0b5de9b6fc399 |
|
BLAKE2b-256 | d56259f03f893d8d88a333a159371b630d466c18d956251ba8267b8ec83672a1 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb15799c63e936c7fde06e049659229286cf5816c86af30d6375d9c28dd2612b |
|
MD5 | 87da03d43a24923ee5eb19ced6bf7e16 |
|
BLAKE2b-256 | b86a356274c4b4da1da1b258d096d29c195d94e2626622f60d768cdf13f3948c |