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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089114daf7aa53af823a472f86ad7b809b625be0b4b8c03883ad9b6eea8d34f3 |
|
MD5 | 091d9b5e8e50d72d6e8ce48b38a57da7 |
|
BLAKE2b-256 | 1e661c17f029ab69099ea6b83b6441d866fa948dc783e0d6d97ed221c39e77ba |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f2e9378a1f3c470ed87957eb77b96551b32b0d5959f6479e133533fba78c9de |
|
MD5 | 5748b040f4af2feefa4ab93579664b93 |
|
BLAKE2b-256 | baa38c77e76aa967b0e5351b9778cc65a4478106d7830b92609205329ec45919 |