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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4239f449bf300c6b2a4f15a038cdabda5e19ec16437df96ab7209ce91538de5 |
|
MD5 | 323145219d04a07b755c9aa6b8fd6c76 |
|
BLAKE2b-256 | 3922220e0a5b69ba960a0708df8d8fbcf92dc7356859e64132cb58b435641700 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-1.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2509c80bd685347e009dff8c53636a93ed984f596492802b29c6dcdb95d96844 |
|
MD5 | c0ac041cf6b233aa287d7eace14f2dde |
|
BLAKE2b-256 | 3f7a9e8dea049b85198ae0ece2a3c3e1b17050dd0b8c89acebc4334a03ac6912 |