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.43.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85582dc1945fe23153fb5e6bc530dfbf85f000ad58b78de27a3c8f4708581f0f |
|
MD5 | 9ab5d66486483a82dec0bd715187c82b |
|
BLAKE2b-256 | ebd3601afb81989c3cdf6cfac15196df082bcc7a280bf24fe17e4d2948eba13e |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f4176a34bb22882605d054e8aa5225c50b8d32994755e80a7620ffef7b9a29c |
|
MD5 | 0c7af97d6086ebb9a78fee5bad108bc4 |
|
BLAKE2b-256 | a8a072a453d1159a7ed3de981bb9f0abea55de05b5178e3c97138fbfec99fbc7 |