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
File details
Details for the file gammarer.aws-rds-database-running-scheduler-1.1.16.tar.gz
.
File metadata
- Download URL: gammarer.aws-rds-database-running-scheduler-1.1.16.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d45d1987b3065811840a427bf58e1cae54be0b3f7e0ed3a1295b6276e0e38c |
|
MD5 | f0c21b96f7e9625a3bd02afcd3f64cd9 |
|
BLAKE2b-256 | 3db514693a359c2a618ac92b8284cd44782ca3696c0d1f9929ebb04bcf684119 |
File details
Details for the file gammarer.aws_rds_database_running_scheduler-1.1.16-py3-none-any.whl
.
File metadata
- Download URL: gammarer.aws_rds_database_running_scheduler-1.1.16-py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 270c16ab9a96e0b9ee0ba2397772d87e4cfa2b0d0f878b1191f7b86cc323df67 |
|
MD5 | 909becb77d6d533bbafad4ab65ed7801 |
|
BLAKE2b-256 | d112edf6464f37de453d57a21645f911c27c27158b43b08671bbf845253c90fe |