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-1.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d396b21619d13f946d28cd5816d5a28be7ab360d774a267c7afc1a752fae45 |
|
MD5 | 60b91a43731297333be206029bd8a732 |
|
BLAKE2b-256 | 722e8ba1b5dbb1fb290e841cf232540bd871b08bf4aa4c49d393219e7ec0c904 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-1.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13553d805e6345ea15b8fc92b4fd1c1588567cca4b4d94563808a7f2012f20c9 |
|
MD5 | 5120dc3baa227ea6356d550b0df5cc69 |
|
BLAKE2b-256 | 717daff5872420cd4a523484b7017e540d5dd0006d061079d9f8d94032318914 |