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.41.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290194a8d66271272c270ebf705d9cf36eda0a10c4cad909c33cb53a07ebbf0a |
|
MD5 | fc9667c696d29bb51da40ed8c704f4dd |
|
BLAKE2b-256 | 0e491aebd60166f0b4ba0e38462906a2edc5991b9ae2285ffb6afa384f4f15bc |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.41-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eebf9cf0f10a99863f895f51b540853f503f1f527baa85508f817687bce5423 |
|
MD5 | 79a898a87c6c85a49bd20f1404f8127d |
|
BLAKE2b-256 | d046b9d5f6d60591fbdab734830a14f0a642a64946d20cd0b77343d21064948c |