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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07ce7d9e821a2c50677c1edb66035da956a4099b76d636447daa021360fab196 |
|
MD5 | 16a02d76349c4de064fa6c8f17f93511 |
|
BLAKE2b-256 | 61fb1a21bbd4fe2f6693f9d1694588ab1d6a4656ab1fac2a80264522212067e2 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 156dea3367b9889d603e51f0076d8ecc55f0e53616ec890f6ab5a624a5fe8094 |
|
MD5 | c8a919c90c24f8feeb2cbb871f84ad95 |
|
BLAKE2b-256 | 46c074bd78b9dc704f291aa3bc3badbd9aed4e7a11981bd10182bd21d1829145 |