Skip to content

Commit

Permalink
allow additional cluster tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Kintaro-Oe committed Nov 30, 2022
1 parent 47e8dd2 commit 43cbbd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 43cbbd9

Please sign in to comment.