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.
 
| Name | Version | 
|---|---|
| terraform | >= 1.0.0 | 
| Name | Version | 
|---|---|
| aws | n/a | 
| random | n/a | 
| 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 | 
| state | n/a | string | 
"ENABLED" | 
no | 
No output.
Module managed by DNX Solutions.
Apache 2 Licensed. See LICENSE for full details.