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 aws-rds-database-running-scheduler
or
yarn add aws-rds-database-running-scheduler
Python
pip install aws-rds-database-running-scheduler
Example
npm install aws-rds-database-running-scheduler
import { RdsDatabaseRunningScheduler, Type } from '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
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 aws-rds-database-running-scheduler-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dfb4d1045f6b8369117aba414c6b72a71f119ef8fc28f2061e4bd6101da5267 |
|
MD5 | ca34c2e3dc2bb15ce421e038a7b588ac |
|
BLAKE2b-256 | e7d94ac43e67c45f941805eac033cf6d21e54c59b7dbb5e34bb182b906c0d8ad |
Close
Hashes for aws_rds_database_running_scheduler-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e74168f4691d76f2faeda323f0ed28ad24186f14f9db85e0c81222e8e8e4b89d |
|
MD5 | 296d10be93f2f2df1c32bdcd5a2d13a5 |
|
BLAKE2b-256 | 148526065891396dcedfef0d6df0eb57201746d455d055e42ac5bc58bd0e815d |