From 5fedc498c12f3f63b692f533fb8e72a9b3ce46f7 Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Fri, 10 Feb 2023 12:43:52 +0700 Subject: [PATCH] Setup read replicas --- infrastructure/somleng/core/rds.tf | 13 +++++++++++++ public/website/case_studies.html | 1 + 2 files changed, 14 insertions(+) diff --git a/infrastructure/somleng/core/rds.tf b/infrastructure/somleng/core/rds.tf index 1168e0a0..ca716f96 100644 --- a/infrastructure/somleng/core/rds.tf +++ b/infrastructure/somleng/core/rds.tf @@ -67,8 +67,21 @@ resource "aws_rds_cluster_instance" "db" { engine = aws_rds_cluster.db.engine engine_version = aws_rds_cluster.db.engine_version db_parameter_group_name = aws_db_parameter_group.db.name + performance_insights_enabled = true } +# resource "aws_rds_cluster_instance" "db_reader1" { +# identifier = "${local.identifier}-reader1" +# cluster_identifier = aws_rds_cluster.db.id +# instance_class = "db.serverless" +# engine = aws_rds_cluster.db.engine +# engine_version = aws_rds_cluster.db.engine_version +# promotion_tier = 2 # https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2-administration.html#aurora-serverless-v2-choosing-promotion-tier +# db_parameter_group_name = aws_db_parameter_group.db.name +# performance_insights_enabled = true +# depends_on = [aws_rds_cluster_instance.db] +# } + resource "aws_db_parameter_group" "db" { name = "${local.identifier}-aurora-postgresql13" family = "aurora-postgresql13" diff --git a/public/website/case_studies.html b/public/website/case_studies.html index 1a38966b..8062b722 100644 --- a/public/website/case_studies.html +++ b/public/website/case_studies.html @@ -70,6 +70,7 @@

+ About the Early Warning System Watch it in action