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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 461bbe375b61305cf440e6729a3f6309b4112fcf35126e1dc7ac80dfc1e72680 |
|
MD5 | 35f952b7642495dc4f15064cd8a1326a |
|
BLAKE2b-256 | 1eb0d74701c63c47466373146100c64a37cf9b15f11d35fcb400a6b1f10a8e11 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a560522b68e2196b059b0e0655eff658b163858fd87113e9adcdcc221e13dd93 |
|
MD5 | 6677140db21cc13b574b019265edb4ba |
|
BLAKE2b-256 | 5cd08fb5f4cd80ba2f95b8e026ce3dbf9f626b519e02e97cf60394b4e9a7a996 |