Skip to content

Commit 6a1b598

Browse files
committed
Update database instance class to a default variable value
1 parent 5ac95d7 commit 6a1b598

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

terraform-unity/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module "unity-sps-database" {
5050
venue = var.venue
5151
service_area = var.service_area
5252
release = var.release
53+
db_instance_class = var.db_instance_class
5354
}
5455

5556
module "unity-sps-efs" {

terraform-unity/modules/terraform-unity-sps-database/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ resource "aws_db_instance" "sps_db" {
6868
storage_type = "gp3"
6969
engine = "postgres"
7070
engine_version = "16.8"
71-
instance_class = "db.m5d.2xlarge"
71+
instance_class = var.db_instance_class
7272
db_name = "sps_db"
7373
username = "db_user"
7474
password = aws_secretsmanager_secret_version.db.secret_string

terraform-unity/modules/terraform-unity-sps-database/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ variable "release" {
1717
description = "The software release version."
1818
type = string
1919
}
20+
21+
variable "db_instance_class" {
22+
description = "The SPS RDS database instance class"
23+
type = string
24+
}

terraform-unity/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,9 @@ variable "installprefix" {
367367
type = string
368368
default = ""
369369
}
370+
371+
variable "db_instance_class" {
372+
description = "The SPS RDS database instance class"
373+
type = string
374+
default = "db.m5d.xlarge"
375+
}

0 commit comments

Comments
 (0)