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, DatabaseType } from '@gammarer/aws-rds-database-running-scheduler';
new RdsDatabaseRunningScheduler(stack, 'RdsDatabaseRunningScheduler', {
targets: [
{
type: DatabaseType.CLUSTER,
identifiers: ['db-cluster-1a'],
startSchedule: {
timezone: 'UTC',
},
stopSchedule: {
timezone: 'UTC',
},
},
{
type: DatabaseType.INSTANCE,
identifiers: ['db-instance-1a'],
startSchedule: {
timezone: 'UTC',
},
stopSchedule: {
timezone: 'UTC',
},
},
],
});)
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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca7eea825c8e01029508a9c9aae20483391dc828666fb62abfa3ecaa9db0a4c |
|
MD5 | cc850be3aedcf0fa3c46b463135ec094 |
|
BLAKE2b-256 | bb861b721c5df04a3ea2af59a8a3aec43b05063872c8034bea5f1257947842bd |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75a4e200f375d325bb23c7529f219fc60bf074fc70c02b70f5ad039ce0a53dfe |
|
MD5 | 8b55b82eb796b590588fcf4f075c1406 |
|
BLAKE2b-256 | ca070a31d581df5878e034b604f8b924bb21d8e1bf4e31907a8c19d4f8d14ce2 |