Skip to content

Commit

Permalink
Merge pull request #1800 from alphagov/sengi/rightsize-rds
Browse files Browse the repository at this point in the history
Make RDS Perf Insights configurable per instance.
  • Loading branch information
sengi authored Nov 20, 2023
2 parents 0891443 + 0661f2f commit 745ab20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/projects/app-govuk-rds/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ resource "aws_db_instance" "instance" {
ca_cert_identifier = "rds-ca-rsa2048-g1"
apply_immediately = var.aws_environment != "production"

performance_insights_enabled = true
performance_insights_retention_period = 7
performance_insights_enabled = each.value.performance_insights_enabled
performance_insights_retention_period = each.value.performance_insights_enabled ? 7 : 0

timeouts {
create = var.terraform_create_rds_timeout
Expand Down

0 comments on commit 745ab20

Please sign in to comment.