From 22fe705aa1ac6559ffec8e2bf5edc1956917ee81 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 8 Nov 2023 10:17:05 -0800 Subject: Decommission ACM cert --- bliki.tf | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'bliki.tf') diff --git a/bliki.tf b/bliki.tf index 735f30a..b4d7bd5 100644 --- a/bliki.tf +++ b/bliki.tf @@ -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" } -- cgit v1.2.3