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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7caa26d3008f30e7f453d1cdcba0d417657fbe783cb777484c45d88e10b715f4 |
|
MD5 | ece045c0dec99961f89a177bb73f7f3e |
|
BLAKE2b-256 | bf15acf5164b41dccb00ae273b3237f5ffd066e367cd434ea5c149a08e18e275 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26da8e9d701d4870a2fd5bfb273ff28280ebc24e21558e4a2dbd5a7bf8e54e3f |
|
MD5 | ccdf8e28410e87642a2195c0a1845e01 |
|
BLAKE2b-256 | 03f8f9547d0018ec3e2fa6622f824d5accc7f4cd519359ceaea6011b845934da |