diff --git a/main.tf b/main.tf index e31c45f..eb40537 100644 --- a/main.tf +++ b/main.tf @@ -245,6 +245,8 @@ resource "aws_rds_cluster" "default" { db_cluster_parameter_group_name = var.db_cluster_parameter_group_name deletion_protection = var.deletion_protection allow_major_version_upgrade = var.allow_major_version_upgrade + + tags = var.additional_tags } // Geneate an ID when an environment is initialised diff --git a/variables.tf b/variables.tf index a77037a..1b4614d 100644 --- a/variables.tf +++ b/variables.tf @@ -242,3 +242,8 @@ variable "allow_major_version_upgrade" { description = "Whether to allow major version upgrades" } +variable "additional_tags" { + default = {} + description = "Additional db cluster tags" + type = map(string) +} \ No newline at end of file