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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d4369f8dc0b1ebd0790e5c6a89b72974f01201db0cfeac0e7dbc1b2b5583631 |
|
MD5 | 435f99c55a53ef1ac675c635458f5c43 |
|
BLAKE2b-256 | b3dc027d44f6d9e9e2262df27e6d2b73237e6f338123c9cad3032b355a8d1d35 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.5.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f26b2da80bbf13ccd623946321f482f6ee78d0b9f5ea3e105f31dab20a9dee8 |
|
MD5 | eacfa8fbd3138bfc87d235f662aab68e |
|
BLAKE2b-256 | a6b656f247c9798123e6cf02ffae3e019b1c2f286c9438ff8e8d4b25d42122fb |