File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ resource "aws_route53_record" "this" {
17
17
18
18
resource "aws_acm_certificate_validation" "this" {
19
19
provider = " aws"
20
- count = " ${ length (var. zone_ids )} "
20
+ count = " ${ var . validate ? length (var. zone_ids ) : 0 } "
21
21
certificate_arn = " ${ aws_acm_certificate . this . arn } "
22
- validation_record_fqdns = [" ${ element ( aws_route53_record. this . * . fqdn , count . index ) } " ]
22
+ validation_record_fqdns = [" ${ aws_route53_record . this . * . fqdn } " ]
23
23
}
Original file line number Diff line number Diff line change @@ -16,3 +16,8 @@ variable "alternative_domains" {
16
16
description = " Domians name to request ACM certificates"
17
17
default = []
18
18
}
19
+
20
+ variable "validate" {
21
+ description = " Validate ACM certificates"
22
+ enabled = true
23
+ }
You can’t perform that action at this time.
0 commit comments