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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31577de1fb5348f79f06f1bd9500f8d77fb8c8afc194765fc23bc6b2985aa94b |
|
MD5 | 8824ba13e728eaa1c2ebd082260f5dc9 |
|
BLAKE2b-256 | b285c54e6accc6c4d6b42faa4fab3e564235c6f4f5d5d2d75516dd9c3cf4c0bd |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac6b578f6d4e19e15558876e5092dc435c04fbc78df5081b3f8dab6c21d574d4 |
|
MD5 | c7b3204bf68d285772cc786058f31eba |
|
BLAKE2b-256 | a80a21bd5f4884d072f89a41234937fee0d65d057753f091181ae42b494191d5 |