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
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-rds-database-running-scheduler</artifactId>
</dependency>
Example
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.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40262485440e3d26072651c63fc65d4015dbcecf3a429985f862d5fe995feb4c |
|
MD5 | c3925b912ecdfc0c3dd8c828d917194a |
|
BLAKE2b-256 | 1c5a7fbd9ae5e4cfc7152b8f24d8c316b1a32e43ae9339ba75e3d227f5692127 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ed61709307cb26ab5b6c5abb64d9b1d91340d69c113908a3ed76d98ea720575 |
|
MD5 | 818bf2ed53b7324c08e8349f4c766741 |
|
BLAKE2b-256 | 187a2b280698b7e461a678ef6276a2bb1354cdcaccc93c9c6d419f9be5d2504f |