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 aws-rds-database-running-scheduler
or
yarn add aws-rds-database-running-scheduler
Python
pip install aws-rds-database-running-scheduler
Example
npm install aws-rds-database-running-scheduler
import { RdsDatabaseRunningScheduler, Type } from '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
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
File details
Details for the file aws-rds-database-running-scheduler-0.3.5.tar.gz
.
File metadata
- Download URL: aws-rds-database-running-scheduler-0.3.5.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42b0dab4e2544d2b657c02e286bcefce12ea0cdb57c0f475c10d9a8be47ee3ec |
|
MD5 | f799ac756d231ad29013973a5a7cd803 |
|
BLAKE2b-256 | 5336f3a76ad29500dba80696ed2348f563075e1cb4c16d8f411b429b08a324cc |
File details
Details for the file aws_rds_database_running_scheduler-0.3.5-py3-none-any.whl
.
File metadata
- Download URL: aws_rds_database_running_scheduler-0.3.5-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd945e8ccfd93127ae9b421b427eb5a02c382c0addd5fd8cf0d8890a3ec44ee1 |
|
MD5 | f40c80884605948cc8b3a53df860300c |
|
BLAKE2b-256 | 39495c36dbcfd844f00cd12a96ada710940b2736ba87bb7aff0c3c55d1899559 |