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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8285c4f98bbad5b10e9eec60960f9ab50045ef2cac45bb1a38984d728d5bbe17 |
|
MD5 | 6a9935434e65faa2b34d532bff096b15 |
|
BLAKE2b-256 | 0971480e0cf40723bd93fd65ea79a1e3dc94841be28477b2c145937562bb6517 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2196bd03e494cb29fb29e039a952e0d20d0b0826084fd08b12c93bb70527080e |
|
MD5 | 5c3c93b5dcaa3071cbc74fe31a5d9b46 |
|
BLAKE2b-256 | 6d7f6517c5ed976ecca77ab6029a7b5658fa27959c4069d0fb25547d5a63c578 |