File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ locals {
14
14
enabled = module. this . enabled
15
15
zone_name = var. zone_name == " " ? " ${ var . domain_name } ." : var. zone_name
16
16
process_domain_validation_options = local. enabled && var. process_domain_validation_options && var. validation_method == " DNS"
17
- domain_validation_options_list = local. process_domain_validation_options ? tolist ( aws_acm_certificate. default . 0 . domain_validation_options ) : []
17
+ domain_validation_options_set = local. process_domain_validation_options ? aws_acm_certificate. default . 0 . domain_validation_options : toset ([])
18
18
}
19
19
20
20
data "aws_route53_zone" "default" {
@@ -25,7 +25,7 @@ data "aws_route53_zone" "default" {
25
25
26
26
resource "aws_route53_record" "default" {
27
27
for_each = {
28
- for dvo in local . domain_validation_options_list : dvo . domain_name => {
28
+ for dvo in local . domain_validation_options_set : dvo . domain_name => {
29
29
name = dvo.resource_record_name
30
30
record = dvo.resource_record_value
31
31
type = dvo.resource_record_type
You can’t perform that action at this time.
0 commit comments