tf-cf-aws-3tier-dev/terraform/database.tf
mharb dfb31a3d74 Patch for_each loop through template variable.
The for_each loop that builds multiple resources now correctly sets values for each resource. Previously we did not descend into each object.
2023-10-02 16:53:22 -04:00

13 lines
338 B
HCL

module "db_psql" {
source = "terraform-aws-modules/rds/aws"
for_each = { for idx, val in var.db_template : idx => val }
identifier = each.value.name
engine = each.value.engine
engine_version = each.value.engine_version
family = each.value.family
instance_class = each.value.class
tags = var.tags
}