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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb0f03962044bf230f5937f6f737c24c2e96eb3f2c7fdbf9e634b7766ce2cef7 |
|
MD5 | 2ac94691ac018b864bb707bbaecb383e |
|
BLAKE2b-256 | 841dc0aa512d999b58a49d172023fc416f5aa4b1f8b4caae9c74e469ebc1d7f7 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.5.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdf2ce49b3812ee09f8f256aa266100b78a861349e2d58bb7114714499173fba |
|
MD5 | 2b396b3224301e5c6cd9544e41a0aff9 |
|
BLAKE2b-256 | 3979d5f38d7da4b59831226d0e6556458be5b1dfb04fa8bc2b4780d4c7b16673 |