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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d7f3582216999cfd6718bb737e968da81ab3f4abb2b9ae05810ea997a60dc31 |
|
MD5 | 326c8f9484f2e38dd51b302c6623321c |
|
BLAKE2b-256 | a4980d889d808caaab8c817fbf3972f48aeabbf9b1679ea3de33f1f38c21e280 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68758a5959c3e2d36a2aeb8dc85daf0f6950b3011e41bf8fcc049523b8aa8fa1 |
|
MD5 | c05f852ba00870227fb09ba8ab7a3381 |
|
BLAKE2b-256 | a8398ffc956c5779f31eeacbcd836afe23a73d1a0f59ad25e798937c29741ddd |