mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
Terraform updates
Attempting to do some log parsing into cloudwatch logs
This commit is contained in:
@@ -23,16 +23,23 @@ resource "aws_acm_certificate" "cert" {
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "cert_validation" {
|
||||
count = length(aws_acm_certificate.cert.subject_alternative_names) + 1
|
||||
zone_id = aws_route53_zone.zone.id
|
||||
ttl = 60
|
||||
for_each = {
|
||||
for dvo in aws_acm_certificate.cert.domain_validation_options : dvo.domain_name => {
|
||||
name = dvo.resource_record_name
|
||||
record = dvo.resource_record_value
|
||||
type = dvo.resource_record_type
|
||||
}
|
||||
}
|
||||
|
||||
name = aws_acm_certificate.cert.domain_validation_options[count.index].resource_record_name
|
||||
type = aws_acm_certificate.cert.domain_validation_options[count.index].resource_record_type
|
||||
records = [aws_acm_certificate.cert.domain_validation_options[count.index].resource_record_value]
|
||||
allow_overwrite = true
|
||||
name = each.value.name
|
||||
records = [each.value.record]
|
||||
ttl = 60
|
||||
type = each.value.type
|
||||
zone_id = aws_route53_zone.zone.id
|
||||
}
|
||||
|
||||
resource "aws_acm_certificate_validation" "cert" {
|
||||
certificate_arn = aws_acm_certificate.cert.arn
|
||||
validation_record_fqdns = aws_route53_record.cert_validation[*].fqdn
|
||||
validation_record_fqdns = [for record in aws_route53_record.cert_validation : record.fqdn]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user