Skip to main content

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 aws-rds-database-running-scheduler

or

yarn add aws-rds-database-running-scheduler

Python

pip install aws-rds-database-running-scheduler

Example

npm install aws-rds-database-running-scheduler
import { RdsDatabaseRunningScheduler, Type } from 'aws-rds-database-running-scheduler';

new RdsDatabaseRunningScheduler(stack, 'RdsDatabaseRunningScheduler', {
  type: Type.CLUSTER, // TYPE.CLUSTER or TYPE.INSTANCE
  identifiers: {
    ['db-cluster-1a']: { // cluster identirier
      startSchedule: {
        timezone: 'Asia/Tokyo',
        minute: '55',
        hour: '8',
        week: 'MON-FRI',
      },
      stopSchedule: {
        timezone: 'Asia/Tokyo',
        minute: '5',
        hour: '19',
        week: 'MON-FRI',
      },
    },
  },
})

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 aws-rds-database-running-scheduler-0.3.5.tar.gz.

File metadata

File hashes

Hashes for aws-rds-database-running-scheduler-0.3.5.tar.gz
Algorithm Hash digest
SHA256 42b0dab4e2544d2b657c02e286bcefce12ea0cdb57c0f475c10d9a8be47ee3ec
MD5 f799ac756d231ad29013973a5a7cd803
BLAKE2b-256 5336f3a76ad29500dba80696ed2348f563075e1cb4c16d8f411b429b08a324cc

See more details on using hashes here.

File details

Details for the file aws_rds_database_running_scheduler-0.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_rds_database_running_scheduler-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dd945e8ccfd93127ae9b421b427eb5a02c382c0addd5fd8cf0d8890a3ec44ee1
MD5 f40c80884605948cc8b3a53df860300c
BLAKE2b-256 39495c36dbcfd844f00cd12a96ada710940b2736ba87bb7aff0c3c55d1899559

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