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.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a8fe2d28f547b6da0cbfe2e4300ddea261a00d376207c85a42775287cd7656d |
|
MD5 | b1ec3eefc89907da2a6e2b34aa3cb2e5 |
|
BLAKE2b-256 | 66eec9c18a7b29d1ed38c440199769d0e954c077de2b94cfab6a826728c87bbd |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba86b9c8b6a8f1711e9318617af901a69357aa542cf0fc9e5b86e00d3bc00c92 |
|
MD5 | 486fd9b28761cc431b6eee47dc222b4c |
|
BLAKE2b-256 | 803ee22f4d2187a431313b0d83254efd773c1395db52e62346e522d97d4ee025 |