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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55176027680eb3a47feb5f436ab89c68c01796550f9ef957a365103c54fc626 |
|
MD5 | 39b68fda4a01f37e7c18842404959984 |
|
BLAKE2b-256 | 3322a06f4f385451ccb19a9bf5a99778f3563f76f8a0e88a502b1a02b4a62057 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.5.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 473c3edb2c120f4bc19b1172036e348964845fec0ae76a9575b8cee7e9f2f59f |
|
MD5 | 924b1ee8c54be4232505c28d5521dc04 |
|
BLAKE2b-256 | 75f55a53776901fe62e41f554cf7b50a97a4eb8b987ed18e9bd0f5944c2470b6 |