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
C# / .NET
dotnet add package Gammarer.CDK.AWS.RdsDatabaseRunningScheduler
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.5.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ec8414b43e0adfd43a9d97685e9b065b3940fcab8fc14c5a5b2ca020484631a |
|
MD5 | 047b25b1b7371734096a4674268c4dc9 |
|
BLAKE2b-256 | e343dee8158a832d9366ffa13bc05371330b7667d9272ba20c88024001b0f843 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.5.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 221cb650370e0b7309557b5a1166f1b6b504bf526d42e01fa2bf8bb90f5f7355 |
|
MD5 | 6b4ac979f450da30285cd0584a16caa4 |
|
BLAKE2b-256 | 9889b5fe04dd0962da93a8b1ebf58d7df7e26460bdffc93ae530b9b79ecdced8 |