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" {
1717
1818resource "aws_acm_certificate_validation" "this" {
1919 provider = " aws"
20- count = " ${ length (var. zone_ids )} "
20+ count = " ${ var . validate ? length (var. zone_ids ) : 0 } "
2121 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 } " ]
2323}
Original file line number Diff line number Diff line change @@ -16,3 +16,8 @@ variable "alternative_domains" {
1616 description = " Domians name to request ACM certificates"
1717 default = []
1818}
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