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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0735975fc995b362e8cbf57b2a520281fb761d3eecb406714641654bf662409 |
|
MD5 | a42e6ee172621b41a75564e4f789f87c |
|
BLAKE2b-256 | 3bcf5fd6dab95d1f286f8c00208e9fafca14cb427b790d6db018ff7c4a328fa5 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12dbd0bb83a968d6e4ef8000f635f521f5519c7abfe48b650409cc636363dc14 |
|
MD5 | 159a03f4c623e8568a02cc4f1b9b15c5 |
|
BLAKE2b-256 | b1040be94ee0d2cb7efa3f3e9f4d7c04931a12b23e0a2275436d5cb5c88eef92 |