Browse the Repo
Browse the Repo
Run Aurora, Amazon’s MySQL and PostgreSQL compatible cloud DB. Supports read replicas, multi-zone automatic failover, and automatic backup.
This module provides the connection details as Terraform output variables:
For more info, see Aurora endpoints.
You can programmatically extract these variables in your Terraform templates and pass them to other resources (e.g.
pass them to User Data in your EC2 instances). You'll also see the variables at the end of each
terraform apply call
or if you run
instance_typeinput variable. For a list of AWS RDS server types, see Aurora Pricing.
instance_countinput variable, and Aurora will automatically deploy the new instances, sync them to the master, and make them available as read replicas.
For more info, see Managing an Amazon Aurora DB Cluster.
This module allows you to configure a number of parameters, such as backup windows, maintenance window, port number, and encryption. For a list of all available variables and their descriptions, see vars.tf.
Requires terraform provider version 1.32 or newer due to the serverless options
As of August 29, 2017, Terraform 0.10.x has an issue where when you apply an RDS Aurora Instance for the first time, you may sometimes receive the following error:
aws_rds_cluster.cluster_with_encryption: Error modifying DB Instance aurora-test: DBInstanceNotFound: DBInstance not found: aurora-test status code: 404, request id: 040094aa-8c62-11e7-baa6-0d7ac77494f1
This error occurs because Terraform first creates the database cluster, then creates one or more database instances, and then queries the AWS API for the IDs of those database instances. But Terraform does not wait long enough for the AWS API to propagate these instances to all AWS API endpoints, so AWS initially replies that the given database instance name was not found.
Fortunately, this issue has a simple fix. After waiting a few seconds, the AWS API will not return the database instances that we expect, so simply re-run
terraform apply and the operation should complete successfully.
We're here to talk about our services, answer any questions, give advice, or just to chat.