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).
pull/6094/head
Michael Li 7 months ago committed by GitHub
parent 102c1fb322
commit 3a7f5d08c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

@ -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 = ""
}
}

Loading…
Cancel
Save