diff options
| -rw-r--r-- | bliki.tf | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -50,42 +50,6 @@ POLICY } -resource "aws_acm_certificate" "bliki" { - provider = aws.cloudfront - - # There's a circular dependency between the zone, the distribution, and the - # cert here. Rather than trying to figure out how to make Terraform solve it, - # hard-code the domain name. - domain_name = "grimoire.ca" - - validation_method = "DNS" - - tags = { - Project = "bliki" - } -} - -resource "aws_route53_record" "bliki_validation" { - for_each = { - for dvo in aws_acm_certificate.bliki.domain_validation_options : - dvo.domain_name => { - name = dvo.resource_record_name - record = dvo.resource_record_value - type = dvo.resource_record_type - } - } - - zone_id = data.aws_route53_zone.grimoire_ca.zone_id - - ttl = 60 - name = each.value.name - type = each.value.type - - records = [ - each.value.record, - ] -} - data "aws_route53_zone" "grimoire_ca" { name = "grimoire.ca" } |
