Skip to content

This is a module to create a schedule to shut down or start a Relational database service(RDS).

License

Notifications You must be signed in to change notification settings

DNXLabs/terraform-aws-rds-scheduler

Repository files navigation

terraform-aws-rds-scheduler

Lint Status LICENSE

This is a module to create a schedule to shut down or start a Relational database service (RDS).

The following resources will be created:

  • AWS Eventbridge event rule - Delivers a real-time stream of system events that shut down or start the RDS.
  • Identity Access Management (IAM) that create a service role for Systems Manager Automation

Notes: Aurora DB clusters can't be started or stopped under certain conditions:

  • To start a cluster it must be in 'stopped' status.
  • To stop a cluster it must be in 'available' status.
  • You can't start or stop a cluster that's part of an Aurora global database.
  • You can't start or stop a cluster that uses the Aurora parallel query.
  • You can't start or stop an Aurora Serverless cluster.
  • You can't start or stop an Aurora multi-master cluster.

Requirements

Name Version
terraform >= 1.0.0

Providers

Name Version
aws n/a
random n/a

Inputs

Name Description Type Default Required
aurora_cluster Is Aurora Cluster? bool false no
cron_start Cron expression to define when to trigger a start of the DB any n/a yes
cron_stop Cron expression to define when to trigger a stop of the DB any n/a yes
enable n/a bool true no
identifier RDS instance or Aurora Cluster identifier for schedule any n/a yes
schedule_timezone Timezone used in scheduling cronjob any n/a yes

Outputs

No output.

Authors

Module managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.

About

This is a module to create a schedule to shut down or start a Relational database service(RDS).

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages