Skip to content

Commit

Permalink
validate cert
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Dec 4, 2024
1 parent 4ca2d6e commit 6da9877
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions infrastructure/ssl.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ resource "aws_acm_certificate" "getstronger_pro_ssl_cert" {
validation_method = "DNS"
}

# resource "aws_route53_record" "getstronger_pro_ssl_cert" {
# for_each = {
# for dvo in aws_acm_certificate.getstronger_pro_ssl_cert.domain_validation_options : dvo.domain_name => dvo
# }
#
# name = each.value.resource_record_name
# type = each.value.resource_record_type
# zone_id = aws_route53_zone.getstronger_pro.zone_id
# records = [each.value.resource_record_value]
# ttl = 60
# }
resource "aws_route53_record" "getstronger_pro_ssl_cert" {
for_each = {
for dvo in aws_acm_certificate.getstronger_pro_ssl_cert.domain_validation_options : dvo.domain_name => dvo
}

name = each.value.resource_record_name
type = each.value.resource_record_type
zone_id = aws_route53_zone.getstronger_pro.zone_id
records = [each.value.resource_record_value]
ttl = 60
}

# Obtain an SSL certificate
resource "aws_acm_certificate" "www_getstronger_pro_ssl_cert" {
Expand Down

0 comments on commit 6da9877

Please sign in to comment.