We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b593316 + a83067b commit 123850dCopy full SHA for 123850d
main.tf
@@ -3,7 +3,7 @@ resource "aws_acm_certificate" "this" {
3
subject_alternative_names = setsubtract(keys(var.domain_names_to_zone_ids), [var.primary_domain_name])
4
validation_method = "DNS"
5
6
- tags = var.default_tags
+ tags = merge(var.default_tags, var.acm_certificate_tags)
7
8
lifecycle {
9
create_before_destroy = true
variables.tf
@@ -1,3 +1,12 @@
1
+variable "acm_certificate_tags" {
2
+ type = map(string)
+ default = {}
+
+ description = <<EOS
+Map of tags assigned to the ACM certificate created by this module. Tags in this map will override tags in `var.default_tags`.
+EOS
+}
10
variable "default_tags" {
11
type = map(string)
12
default = {}
0 commit comments