Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup read replicas #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions infrastructure/somleng/core/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions public/website/case_studies.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ <h3 class="page__main__title">
</h3>
<img src="./images/undraw_weather_notification_4sbo.svg" class="expanded__image">
<p>
<a href="https://www.youtube.com/watch?v=FTeDdLDMyZQ" target="_blank" class="link"> <i class="fa-brands fa-youtube"></i> About the Early Warning System <i class="fa fa-external-link"></i></a>
<a href="https://www.youtube.com/watch?v=G7eaYQ6nCAs" target="_blank" class="link"> <i class="fa-brands fa-youtube"></i> Watch it in action <i class="fa fa-external-link"></i></a>
</p>
<p>
Expand Down