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.45.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c56c798ea82a81b1bed62b7e25d08933a573a4dd2b50ae7e78ec6bd2d00c1115 |
|
MD5 | ea6ad15d8799af4a24ad3264eee6d8cc |
|
BLAKE2b-256 | 256269c66c4ffb8f83e494c2515c211852ca53c98370ba6f08dc486ec7f296a3 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.45-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b471cb42b8381deb3da2cd985f8b8f85cf1c3fbf3daab5e0241fefedb1d0c687 |
|
MD5 | bea91ad775c7c5c9eeeac345e731c2d3 |
|
BLAKE2b-256 | a0d3243606be1c827a35eac7db94317421bc506eb063fe17b2844ec1c348c6f9 |