Registry /
aws / rds-database-running-scheduler
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
RDSDatabaseRunningScheduler
✓ import { RDSDatabaseRunningScheduler } from 'rds-database-running-scheduler'
✗ const RDSDatabaseRunningScheduler = require('rds-database-running-scheduler')
ESM-only package; no CommonJS support. TypeScript types are bundled.
RDSDatabaseRunningScheduleStack
✓ import { RDSDatabaseRunningScheduleStack } from 'rds-database-running-scheduler'
✗ import RDSDatabaseRunningScheduleStack from 'rds-database-running-scheduler'
This is a named export, not a default export.
TargetResource
✓ import { TargetResource } from 'rds-database-running-scheduler'
✗ import { TargetResourceProps } from 'rds-database-running-scheduler'
Type-only import if using TypeScript: import type { TargetResource } from ...
Creates a CDK app with an RDSDatabaseRunningScheduler to start/stop tagged RDS instances on weekdays at 07:50 UTC and 19:05 UTC.
import { App, Stack } from 'aws-cdk-lib';
import { RDSDatabaseRunningScheduler } from 'rds-database-running-scheduler';
const app = new App();
const stack = new Stack(app, 'TestStack', { env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION } });
new RDSDatabaseRunningScheduler(stack, 'RDSRunningScheduler', {
targetResource: { tagKey: 'WorkHoursRunning', tagValues: ['YES'] },
secrets: { slackSecretName: 'my/slack/webhook' },
enableScheduling: true,
startSchedule: { timezone: 'UTC', minute: '50', hour: '7', week: 'MON-FRI' },
stopSchedule: { timezone: 'UTC', minute: '5', hour: '19', week: 'MON-FRI' },
});
app.synth();
Errors
Common errors & fixes
Cannot find module 'rds-database-running-scheduler'
Package not installed or typo in package name
fixRun 'npm install rds-database-running-scheduler' and verify package.json has the correct name.
Property 'startSchedule' is missing in type '{}'
Missing required props when instantiating the construct
fixProvide startSchedule and stopSchedule objects with at least timezone, minute, hour, week.
TypeError: Cannot read properties of undefined (reading 'slackToken')
The Slack secret in Secrets Manager does not contain the expected keys
fixCreate a secret with JSON: {\"slackToken\": \"...\", \"slackChannel\": \"...\"} Audit
Dependencies
aws-cdk-librequiredAWS CDK core library with RDS, Lambda, EventBridge Scheduler, and IAM modules
constructsrequiredCDK constructs base library required for Construct class