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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4328a68c7b0261b53f80c6f4a810e4be8aa6283010ad89d5120df6aec64a47e |
|
MD5 | c8228384555eb9dd4d87c38add2f9bbe |
|
BLAKE2b-256 | 053025c65d14a8909a3fe5f628ca41d1e8846f7a0f16c0cf9cbd8df69adefc5f |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-1.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3252700fe53965a5fc3f78b45dbe04f9f95078323176f70ffbb1a8f73ad89f7c |
|
MD5 | b3342324f650121c6e86e8d1f2a1b7f2 |
|
BLAKE2b-256 | 8af1c423ff3939a0bc605626a1d9d79a05115dd47237b42756acc3258a13e1e8 |