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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b293f38f83257676d03fdd64e2156f7d9c4c32c050051d67686dd066e985287 |
|
MD5 | 0aa9785829cca479a8e60cb96470dfbf |
|
BLAKE2b-256 | 9fe2bb520cda0db087a8b8dc7c14bed829d79ad030430a964eb784e855c35c70 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aef6584d99e512d71949e5a7e63e7165274bfbe5a8c4fb92da1111dc73e6e200 |
|
MD5 | ed045fac4b38f1e2002cdfa6d93bae65 |
|
BLAKE2b-256 | b535cafd4fbcd922616152cb679629c0e43045fee96ebbad7614671514e68afe |