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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 517d8fad4ae39bfcd1cea8e50f83fb698ff4ac29955abcc5fd3843a7a1783e5e |
|
MD5 | f4621ff79f9869eba22c1aeaeed4f3e5 |
|
BLAKE2b-256 | cfbd52eeaf47db9ad8826c0352c0291a3358cc5b36b0d91f76bf9316b7d732e2 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.5.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbdfbff1718b41c620aee1c18473d3d160b9939c59d77366e89007f2b6666e24 |
|
MD5 | 6e530180832412ad24b74f9606f9ae1d |
|
BLAKE2b-256 | e415f353c4d154416d926152b28812ec5c3b9bb235cca1fbe9e8be9bc8f47de2 |