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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c3d9024f720b0dd89138a3732300301434f8d5064174228ef13ff019e486d7 |
|
MD5 | 44816aec1101c558691beb71e3b84786 |
|
BLAKE2b-256 | d2e9422bff65e87456b3881b07122b2d0abdd5487fd0aa295cc5b48f21e1fed5 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.5.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96b466a0385db9884602cecaa2a433fdb2cbee31022c7609129b28cc696eb6c4 |
|
MD5 | a56d244ba78ed94ed82ed7649783a929 |
|
BLAKE2b-256 | 6ba89e50a2b50e9e25965c267da8ba36d26fa03fe4f6196a7017641cb2bc2e4d |