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.46.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e39754f4fae160566520f63c7a4de608c5be867a066280f79f2412fcd86bff5 |
|
MD5 | 336a434f1a3303cc36ff32bf1da84f2b |
|
BLAKE2b-256 | 90f9122ab6a6ebf2cc353a9a8ba2ff5fde57edd97b3a07da5492a9bd3d8a4bba |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c6ff5fcbbdd3be201bb12518e0c8b17f4d581f750fa3baec54a35c781afa8cb |
|
MD5 | 00fcd4c9c67c73d2914d6e9998fd4305 |
|
BLAKE2b-256 | 1fc4dfbcd23692ce365122171bf5650f97db4cf5594bc160f9bb65c7568caa15 |