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.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfa9faac8c3bbbf8a521a9ecbf0d9e7ffbc6bf9beb99205271f5bc618776581d |
|
MD5 | 977aa2bf6c8977bcb48a6fd46224ea2e |
|
BLAKE2b-256 | 4e3600d2d5570cae45d580532a060406ece0036b1380f5b6e39a1fe77ec138e0 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ad1398e4840152d6cbb3794513ee030a944f07493f4647c92baae25e03f6734 |
|
MD5 | 7ab1654d7ee0d65fe704c5d328cd31a6 |
|
BLAKE2b-256 | bdc59af6c714de058a1b8273675dc58ee5c8c002c0a23a4063249d841a4ef9da |