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.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82187b9d0157cc2c709dad87917dde461e66df8a93138e1478e909eaf128acff |
|
MD5 | 2051589c74637a843f8f70f93463b453 |
|
BLAKE2b-256 | b71c31c08bd16f35d0acd04bf781793a4a71603f77251db3860102e124aa16f8 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fdeaf3412da25f65caa3d1654c1d6d264c778a0769032614454c33d7c338099 |
|
MD5 | 14b553a1db891073e7bd3ed22d06c767 |
|
BLAKE2b-256 | 2e562cc4281a75729176ecc776d184f809082e624a151e5a56ed8ad97cf3789c |