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 @gammarers/aws-rds-database-running-schedule-stack
# or
yarn add @gammarers/aws-rds-database-running-schedule-stack
Python
pip install gammarers.aws-rds-database-running-schedule-stack
C# / .NET
dotnet add package Gammarers.CDK.AWS.RdsDatabaseRunningScheduleStack
Example
import { RdsDatabaseRunningScheduler, DatabaseType } from '@gammarer/aws-rds-database-running-schedule-stack';
new RdsDatabaseRunningScheduleStack(stack, 'RdsDatabaseRunningScheduleStack', {
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 gammarers_aws_rds_database_running_schedule_stack-1.2.2.tar.gz
.
File metadata
- Download URL: gammarers_aws_rds_database_running_schedule_stack-1.2.2.tar.gz
- Upload date:
- Size: 45.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf5cdbd8e3d6ea9dd54f660b82e815fa25cfc7536f9cdf7be2295e59bdfc75b |
|
MD5 | 49b6292bdf90883e937c4b718a8cb3e3 |
|
BLAKE2b-256 | 2bb00d175a2602069c9832e6e2132fb41ccd7bfe126dbf395cd6cb9e74eb55a6 |
File details
Details for the file gammarers.aws_rds_database_running_schedule_stack-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: gammarers.aws_rds_database_running_schedule_stack-1.2.2-py3-none-any.whl
- Upload date:
- Size: 44.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27260dd668db9ae2dfe7e4687b8485e01631bd7280200ef32561e513d146f8b4 |
|
MD5 | 74117916ec39f8e0281388737f46a107 |
|
BLAKE2b-256 | 0eba4db99063b6210f1683e44add94ec7a02a1eddaa3f4d29ec807e06ef7d4f8 |