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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ca2b7bada89e7c54f3b5fce719bb4cd40b84cb10fb23850468ff6d7d916b2e |
|
MD5 | fe30c80841aec294705440f15ed73068 |
|
BLAKE2b-256 | 08bef0e0c3bdffdf5065807bf25bd90ca995dbb1f7db411ce2b0b78474c25b28 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.5.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 271c47c39f54c0dc24f95801fe5fd6614676e2f4028246f8009c1cca6ef7ef26 |
|
MD5 | 1fa0905146a8aaa1e190f08e64e94ce2 |
|
BLAKE2b-256 | eb93f43be9a15f325eef76fd99cc2a95d806f451e83e5dd2f55f921fa02f1f6d |