File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11resource "aws_acm_certificate" "mtls_api_gateway_cert" {
2- count = local. is_sandbox ? 0 : 1
32 domain_name = local. mtls_api_gateway_full_domain_name
43 validation_method = " DNS"
54
@@ -10,8 +9,8 @@ resource "aws_acm_certificate" "mtls_api_gateway_cert" {
109
1110# Record used by ACM for DNS Validation
1211resource "aws_route53_record" "validation" {
13- for_each = local . is_sandbox ? {} : {
14- for dvo in aws_acm_certificate . mtls_api_gateway_cert [ 0 ] . domain_validation_options :
12+ for_each = {
13+ for dvo in aws_acm_certificate . mtls_api_gateway_cert . domain_validation_options :
1514 dvo.domain_name = > {
1615 name = dvo.resource_record_name
1716 record = dvo.resource_record_value
@@ -28,7 +27,6 @@ resource "aws_route53_record" "validation" {
2827}
2928
3029resource "aws_acm_certificate_validation" "mtls_api_gateway_cert" {
31- count = local. is_sandbox ? 0 : 1
32- certificate_arn = aws_acm_certificate. mtls_api_gateway_cert [0 ]. arn
30+ certificate_arn = aws_acm_certificate. mtls_api_gateway_cert . arn
3331 validation_record_fqdns = [for record in aws_route53_record . validation : record . fqdn ]
3432}
You can’t perform that action at this time.
0 commit comments