Terraform module for creating AWS Aurora MySQL Cluster
These types of resources are supported:
DB Option Group
DB Parameter Group
DB Subnet Group
RDS Cluster - Without Data [Empty Cluster] OR From snapshot
RDS Cluster - With data, restore from S3
RDS Cluster Instance
RDS Cluster Parameter Group
Root module calls these modules which can also be used separately to create independent resources:
- DB Option Group - Creates RDS DB Option Group
- DB Parameter Group - Creates RDS DB Parameter Group
- DB Subnet Group - Creates RDS DB Subnet Group
- RDS Cluster - Creates RDS Cluster without data (Aurora)
- RDS Cluster - Creates RDS Cluster with data, restore from S3 (Aurora)
- RDS Cluster Instance - Creates RDS Cluster Instances
- RDS Cluster Parameter Group - Creates RDS Cluster Parameter Group
The input variables and output parameters are documented in
- DB Option Group/TERRAFORM.md
- DB Parameter Group/TERRAFORM.md
- DB Subnet Group/TERRAFORM.md
- RDS Cluster/TERRAFORM.md
- RDS Cluster Instance/TERRAFORM.md
- RDS Cluster Parameter Group/TERRAFORM.md
Blog
- Complete details are available on this blog - http://sanjeet-deshpande.blogspot.com/2018/05/terraform-modules-for-amazon-rds-aurora.html
- [v0.0.1]
- Initial version:
- Create RDS Aurora resources (DB Parameter Groups/Cluster Parameter Groups and DB Subnet groups)
- Create Empty Aurora Cluster
- Create Aurora cluster with data (Custom utility to restore data from s3 while creating aurora cluster)
- Create Aurora cluster instances.
- Initial version:
- [v0.0.2]
- Added support to create Aurora Cluster from snapshot (Cluster restoration from snapshot).
- [v0.0.3]
- Added feature to choose old Aurora engine_version while creating Aurora instances. for example - Aurora cluster engine version - 5.6.10a and Instances belong this cluster are on - 5.6.10a.1.14.4 engine.
- [v0.0.4]
- Terraform started supporting data restoration from s3 - Support for s3_import has been added to the aws_rds_cluster resource as part of v1.17.0 of the AWS provider. v0.0.1 has the cutom utility to restore data from s3 while creating Aurora cluster, that we have deprecated in v0.0.4.