diff --git a/main.tf b/main.tf index 266fac1..31cbb6c 100644 --- a/main.tf +++ b/main.tf @@ -2,7 +2,7 @@ resource "aws_secretsmanager_secret" "this" { name = "${var.name_prefix}.rollbar_access_tokens" description = "Secret value is managed via Terraform" - tags = var.default_tags + tags = merge(var.default_tags, var.secretsmanager_secret_tags) } resource "aws_secretsmanager_secret_version" "this" { diff --git a/variables.tf b/variables.tf index 6658c4e..0d17d98 100644 --- a/variables.tf +++ b/variables.tf @@ -25,3 +25,12 @@ variable "rollbar_tokens" { List of objects having access tokens names and the token values which shall be loaded into the SecretsManager. EOS } + +variable "secretsmanager_secret_tags" { + type = map(string) + default = {} + + description = <