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 @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

File hashes

Hashes for gammarer.aws-rds-database-running-scheduler-1.1.16.tar.gz
Algorithm Hash digest
SHA256 27d45d1987b3065811840a427bf58e1cae54be0b3f7e0ed3a1295b6276e0e38c
MD5 f0c21b96f7e9625a3bd02afcd3f64cd9
BLAKE2b-256 3db514693a359c2a618ac92b8284cd44782ca3696c0d1f9929ebb04bcf684119

See more details on using hashes here.

File details

Details for the file gammarer.aws_rds_database_running_scheduler-1.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarer.aws_rds_database_running_scheduler-1.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 270c16ab9a96e0b9ee0ba2397772d87e4cfa2b0d0f878b1191f7b86cc323df67
MD5 909becb77d6d533bbafad4ab65ed7801
BLAKE2b-256 d112edf6464f37de453d57a21645f911c27c27158b43b08671bbf845253c90fe

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