summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2023-11-08 10:17:05 -0800
committerOwen Jacobson <owen@grimoire.ca>2023-11-08 10:17:05 -0800
commit22fe705aa1ac6559ffec8e2bf5edc1956917ee81 (patch)
tree140d2bdda924fc7fd8a953d8f1b8d77b3ed5dc6d
parentce2d0460b45c72d176b8308661f89fd3975300e5 (diff)
Decommission ACM cert
-rw-r--r--bliki.tf36
1 files changed, 0 insertions, 36 deletions
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"
}