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
Example
npm install @gammarer/aws-rds-database-running-scheduler
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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44f5daa4bb6c50177622fe662eb310983bba5d07367de032ee5aff1ca4ddd93d |
|
MD5 | 43a2442f4879341a0df8252d779c474f |
|
BLAKE2b-256 | 8ff55f03b6fc631d3ddb11cf6eb5e6ed9ef308cccf4c2069a1af087faa120f1d |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4215d885fa1c7c63cd5c1e94e4b5783d70438e7bc89ba2fb937c3d97818f6597 |
|
MD5 | 6de4b93620f78f7947c7ba41e46c5821 |
|
BLAKE2b-256 | bb230f0466be81e64ad87cf5a74d0e52df32385b29945744dfc1840b14316c25 |