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

Import transition RDS instance #1286

Merged
merged 10 commits into from
May 9, 2024
4 changes: 4 additions & 0 deletions terraform/deployments/rds/import_transition.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {
to = aws_db_instance.instance["transition"]
id = "blue-transition-postgresql-primary"
}
17 changes: 17 additions & 0 deletions terraform/deployments/tfc-configuration/variables-integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,23 @@ module "variable-set-rds-integration" {
freestoragespace_threshold = 10737418240
}

transition = {
engine = "postgres"
engine_version = "13"
engine_params = {
log_min_duration_statement = { value = 10000 }
log_statement = { value = "all" }
deadlock_timeout = { value = 2500 }
log_lock_waits = { value = 1 }
}
engine_params_family = "postgres13"
name = "transition"
allocated_storage = 120
instance_class = "db.m6g.large" # TODO: downsize this after migration if required
performance_insights_enabled = true
freestoragespace_threshold = 10737418240
}

whitehall = {
engine = "mysql"
engine_version = "8.0"
Expand Down
17 changes: 17 additions & 0 deletions terraform/deployments/tfc-configuration/variables-production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,23 @@ module "variable-set-rds-production" {
freestoragespace_threshold = 10737418240
}

transition = {
engine = "postgres"
engine_version = "13"
engine_params = {
log_min_duration_statement = { value = 10000 }
log_statement = { value = "all" }
deadlock_timeout = { value = 2500 }
log_lock_waits = { value = 1 }
}
engine_params_family = "postgres13"
name = "transition"
allocated_storage = 120
instance_class = "db.m6g.large" # TODO: downsize this after migration if required
performance_insights_enabled = true
freestoragespace_threshold = 10737418240
}

whitehall = {
engine = "mysql"
engine_version = "8.0"
Expand Down
17 changes: 17 additions & 0 deletions terraform/deployments/tfc-configuration/variables-staging.tf
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,23 @@ module "variable-set-rds-staging" {
freestoragespace_threshold = 10737418240
}

transition = {
engine = "postgres"
engine_version = "13"
engine_params = {
log_min_duration_statement = { value = 10000 }
log_statement = { value = "all" }
deadlock_timeout = { value = 2500 }
log_lock_waits = { value = 1 }
}
engine_params_family = "postgres13"
name = "transition"
allocated_storage = 120
instance_class = "db.m6g.large" # TODO: downsize this after migration if required
performance_insights_enabled = true
freestoragespace_threshold = 10737418240
}

whitehall = {
engine = "mysql"
engine_version = "8.0"
Expand Down
Loading