Skip to content

Commit 123850d

Browse files
author
Jan Sebastian Siwy
authored
Merge pull request #21 from babbel/resource-specific-tags
Add support for resource-specific tags
2 parents b593316 + a83067b commit 123850d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_acm_certificate" "this" {
33
subject_alternative_names = setsubtract(keys(var.domain_names_to_zone_ids), [var.primary_domain_name])
44
validation_method = "DNS"
55

6-
tags = var.default_tags
6+
tags = merge(var.default_tags, var.acm_certificate_tags)
77

88
lifecycle {
99
create_before_destroy = true

variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
variable "acm_certificate_tags" {
2+
type = map(string)
3+
default = {}
4+
5+
description = <<EOS
6+
Map of tags assigned to the ACM certificate created by this module. Tags in this map will override tags in `var.default_tags`.
7+
EOS
8+
}
9+
110
variable "default_tags" {
211
type = map(string)
312
default = {}

0 commit comments

Comments
 (0)