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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b4c1d22ec5935703b17ffb17d4364ff950280b34fc91ccc4224d69654dccf8 |
|
MD5 | c5d3fa10af93fc80f7f2bc3272ba7ec3 |
|
BLAKE2b-256 | 47496acccbd75b58d49646427cee84df14838a7fdf1b4adbe79c61a5da41531b |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b1d5a60e839102425a1ffa42b492c2a54b5d51d52acc669eec288418849e786 |
|
MD5 | 34cf9443402e3959104335330ad0862e |
|
BLAKE2b-256 | 68d0fbe3322406ce51d969b45939d89a6ad03fee1573ae76702c9c3c89b92cd2 |