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.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cca89d0e10123e38e614900f0022db5ec7aa964c7f7b71427b386b3fae52a9b0 |
|
MD5 | e44779edd1dd74bf7ea6660ccf9272f6 |
|
BLAKE2b-256 | 4c71fcda7a611eb8525d43689b8b724cc2cdf63acab49e64260a4ce8f6becbbc |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea216ce7013865bf65dd3cf8dac9fd30611a4d971f4cf9f05b97f22829a53d1 |
|
MD5 | 4b3b8c29727b0d4d548278f4181b2e17 |
|
BLAKE2b-256 | 266a699c3db16857a1dc10f1d441011c0344d7d65cb845e5a9af065bae54769f |