chore(e2e): Allow AWS to select default db version (#6090)

Rather than hard-coding a version and needing to update this every time it becomes deprecated, we just pick the current default that AWS has set (which should be close to the latest).
This commit is contained in:
Michael Li authored and GitHub committed 2025-09-26 09:26:05 -04:00
1 parent 102c1fb322
commit 3a7f5d08c5
2 files changed
+7 -9

No files matched your search

+6 -2
View File
@@ -6,14 +6,18 @@ resource "aws_db_subnet_group" "boundary" {
subnet_ids = data.aws_subnets.infra.ids
}
data "aws_rds_engine_version" "default" {
engine = var.db_engine
}
resource "aws_db_instance" "boundary" {
count = var.db_create == true ? 1 : 0
identifier = "boundary-db-${random_string.cluster_id.result}"
allocated_storage = var.db_storage
storage_type = var.db_storage_type
iops = var.db_storage_iops
engine = var.db_engine
engine_version = var.db_engine == "aurora-postgres" ? null : var.db_version
engine = data.aws_rds_engine_version.default.engine
engine_version = data.aws_rds_engine_version.default.version
instance_class = var.db_class
monitoring_interval = var.db_monitoring_interval
monitoring_role_arn = var.db_monitoring_role_arn
+1 -7
View File
@@ -136,12 +136,6 @@ variable "db_class" {
default = "db.t4g.small"
}
variable "db_version" {
description = "AWS RDS DBS engine version (for postgres/mysql)"
type = string
default = "15.7"
}
variable "db_engine" {
description = "AWS RDS DB engine type"
type = string
@@ -406,4 +400,4 @@ variable "vault_transit_token" {
description = "vault token used for kms transit in the boundary config"
type = string
default = ""
}
}