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.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb32be5afec21c48a59db4688e536b95e27d7431b0832513d242e8acb10bdcf5 |
|
MD5 | 943d755af83e5c75a8f6fa57ac82c446 |
|
BLAKE2b-256 | ac0b756da82dbdb4b5102c0fcd404cd1e6f2203162a4fea6caa4710ba502c0cc |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb828ff50eb38c5cc911cc526fa6e1bcd7121dc683673b1f4aef5dd14992360a |
|
MD5 | b2ec59d595cff5f0da32b9650096b248 |
|
BLAKE2b-256 | 45d90d1ca0bb8dcb9b84843c8ef981bab788d5d88c88b8476147f7dc2ff1d625 |