Skip to main content

AWS RDS Database Running Scheduler

Project description

GitHub npm (scoped) PyPI Nuget Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer)

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


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.0.tar.gz.

File metadata

File hashes

Hashes for gammarers_aws_rds_database_running_schedule_stack-1.2.0.tar.gz
Algorithm Hash digest
SHA256 45c82864f26d0b162f307cdb89d2452585ed61d87e8462f76eba36b24adb5f1d
MD5 0302399a217442a51e489ace73a9ab80
BLAKE2b-256 5c2a6b15252cd13270d81fea6fb34a3c4f28d71010040e82c77993c852f02a35

See more details on using hashes here.

File details

Details for the file gammarers.aws_rds_database_running_schedule_stack-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarers.aws_rds_database_running_schedule_stack-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa6377555e40442e272d11341f67462ac21e81ed4fe686b29d81ce31dc016999
MD5 ac445d3e6f2ca89feaa097f18e8fcd71
BLAKE2b-256 68a4e793276c5354b023ffcfde898a51decb5aa34f34c0a53e83942670ea838d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page