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.44.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6787afefdc94cf552d1822f1e83f082afc4676e2b5826b2746e02d901086b26 |
|
MD5 | 2339026e910f7641786de9e7fa5f0ec6 |
|
BLAKE2b-256 | 3f1bb752c4bdd21802f297f09606df3b48881ebdfe68f8027d618629e4106e02 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc8900cfffcfc6f66f8f5d7c0b6d1a24e517346d7d1b35c1c00e509c4e36d96 |
|
MD5 | 5bcb5d21f75072890629b7d83c680ecd |
|
BLAKE2b-256 | 328545fe89cfc1eb16d0eb57131dd29d5bb804aa475a2dd01494465f09eb7fe3 |