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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa8b4b6fdf826d18572dedf4b648b20b866f896f8db45f43b6cab877588ee61 |
|
MD5 | 394211c0bbe6b876930beb47696b376d |
|
BLAKE2b-256 | c2caa2f73b77e574eefcd41c5a1322335a3e248b2fa2ab9588a88308c3ab0cfc |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f575ab6fc73987c97f19c0c27a2d5c6350ed1eee80c1973f5a27b810852def |
|
MD5 | 3a4bdcb6ce12359cf6b1381e57ff2c0e |
|
BLAKE2b-256 | adc504ca402fc454ef0e03d6d4621ad7b4ca601276082df43930b4550e0f7c2e |