Terraform modules to configure producer databases and network connectivity for RDI.
The examples directory contains complete examples which can be configured and run with terraform apply:
Creates an example Postgres database exposed with PrivateLink. This example creates a VPC and can be used to try RDI quickly with no existing resources.
Creates an Aurora RDS database with two instances exposed with PrivateLink. This example supports failing over between instances using a Lambda function to detect events.
The modules directory contains reusable Terraform modules which can be composed together.
AWS PrivateLink connection via a Network Load Balancer.
VPC and EC2 instance with a sample Postgres database.
Aurora Postgres RDS cluster with 2 instances.
A Lambda function triggered by RDS Events to SNS, which updates an NLB with the current Aurora writer instance.
AWS KMS Key and Secret Manager secret for RDI to authenticate.