Skip to content

Commit

Permalink
Merge pull request #316 from ministryofjustice/allow-custom-secret-tags
Browse files Browse the repository at this point in the history
allow custom secret tags
  • Loading branch information
markgov authored May 10, 2024
2 parents 0f6020a + 25f5b1c commit 03913ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ resource "aws_secretsmanager_secret" "fixed" {
kms_key_id = each.value.kms_key_id
recovery_window_in_days = each.value.recovery_window_in_days

tags = merge(local.tags, {
tags = merge(local.tags, each.value.tags, {
Name = "${var.name}-${each.key}"
})
}
Expand All @@ -273,7 +273,7 @@ resource "aws_secretsmanager_secret" "placeholder" {
kms_key_id = each.value.kms_key_id
recovery_window_in_days = each.value.recovery_window_in_days

tags = merge(local.tags, {
tags = merge(local.tags, each.value.tags, {
Name = "${var.name}-${each.key}"
})
}
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ variable "secretsmanager_secrets" {
special = optional(bool)
}))
value = optional(string)
tags = optional(map(string), {})
}))
default = null
}
Expand Down

0 comments on commit 03913ac

Please sign in to comment.