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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9a0d91fe1bf1eacee432f93f01dbef3c9bc624a7276475d75b3cd53f12b5ac8 |
|
MD5 | 92225a66b8d731a649f249384818bdbf |
|
BLAKE2b-256 | 2a4e447fb25c776a209087be8a64aa4ac74563f036fff2f5c785298bb4841e98 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c32bacbe8a73173506333caf9ad729451fc44c042239e3d31d55afa4dfe9ba |
|
MD5 | a59cebadf2c157b1ad194c7559afec0e |
|
BLAKE2b-256 | 6baca50ad1d541064b408153599f01052fc673d7ec2412c055c9cb96ca37ff34 |