Quickstart
Deploy your first Aurora cluster in minutes with a working Terraform example.
Module Inputs
Full reference for every variable the module accepts.
Guides
Step-by-step guides for MySQL, PostgreSQL, Serverless, Global Clusters, and more.
Module Outputs
All outputs exported by the module for use in other Terraform resources.
What this module provides
Theterraform-aws-modules/rds-aurora module abstracts the complexity of provisioning AWS RDS Aurora infrastructure. It manages clusters, instances, security groups, parameter groups, monitoring roles, autoscaling, and secrets — all from a single module call.
Aurora MySQL & PostgreSQL
Provision provisioned or serverless Aurora clusters for both MySQL and PostgreSQL engines.
Serverless v1 & v2
Configure auto-pausing Serverless v1 clusters or the new capacity-unit-based Serverless v2.
Global Clusters
Span Aurora across multiple AWS regions with automated write forwarding and replication.
Aurora Limitless
Enable Aurora Limitless Database with shard groups for horizontal write scaling.
Aurora DSQL
Create Aurora DSQL clusters with optional multi-region peering.
Read Replica Autoscaling
Automatically scale reader instances based on CPU utilization or connection count.
Enhanced Monitoring
Get OS-level metrics via IAM-managed enhanced monitoring roles and Performance Insights.
Secrets Manager
Let RDS manage the master password lifecycle in AWS Secrets Manager with rotation support.
Security Groups & VPC
Auto-create and configure VPC security groups with fine-grained ingress/egress rules.
Supported engine modes
| Engine | Mode | Description |
|---|---|---|
aurora-mysql | provisioned | Standard MySQL-compatible Aurora cluster |
aurora-postgresql | provisioned | Standard PostgreSQL-compatible Aurora cluster |
aurora-mysql | serverless | Serverless v1 (auto-pause, ACU-based) |
aurora-postgresql | provisioned + serverlessv2_scaling_configuration | Serverless v2 (sub-second scaling) |
aurora-postgresql | provisioned + cluster_scalability_type = "limitless" | Aurora Limitless (sharded writes) |
aurora-mysql / aurora-postgresql | global_cluster_identifier | Global cluster (multi-region) |
mysql / postgres | allocated_storage set | Multi-AZ RDS (non-Aurora engine) |
Module source
terraform-aws-rds-aurora
This module requires Terraform
>= 1.11.1 and the AWS provider >= 6.28.
