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 {
1414 enabled = module. this . enabled
1515 zone_name = var. zone_name == " " ? " ${ var . domain_name } ." : var. zone_name
1616 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 ([])
1818}
1919
2020data "aws_route53_zone" "default" {
@@ -25,7 +25,7 @@ data "aws_route53_zone" "default" {
2525
2626resource "aws_route53_record" "default" {
2727 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 => {
2929 name = dvo.resource_record_name
3030 record = dvo.resource_record_value
3131 type = dvo.resource_record_type
You can’t perform that action at this time.
0 commit comments