2022-08-28 02:27:55 +01:00
|
|
|
resource "aws_route53_zone" "gmemca" {
|
|
|
|
name = "gmem.ca"
|
2022-09-17 03:40:29 +01:00
|
|
|
}
|
|
|
|
|
2022-10-26 12:27:35 +01:00
|
|
|
resource "aws_route53_record" "ntfy" {
|
|
|
|
zone_id = aws_route53_zone.gmemca.zone_id
|
|
|
|
name = "ntfy"
|
|
|
|
type = "A"
|
|
|
|
ttl = 300
|
|
|
|
records = ["100.120.232.77"]
|
|
|
|
}
|
|
|
|
|
2022-09-17 03:40:29 +01:00
|
|
|
resource "aws_route53_record" "api-by-becki" {
|
|
|
|
zone_id = aws_route53_zone.gmemca.zone_id
|
|
|
|
name = "abb"
|
|
|
|
type = "A"
|
|
|
|
ttl = 300
|
|
|
|
records = ["168.119.154.189"]
|
2022-09-17 17:30:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_route53_record" "api-by-becki-primary" {
|
|
|
|
zone_id = aws_route53_zone.gmemca.zone_id
|
|
|
|
name = "api-by-becki"
|
2022-09-26 09:10:53 +01:00
|
|
|
type = "A"
|
2022-09-17 17:30:57 +01:00
|
|
|
|
|
|
|
alias {
|
2022-09-26 09:10:53 +01:00
|
|
|
name = aws_cloudfront_distribution.api-by-becki.domain_name
|
|
|
|
zone_id = aws_cloudfront_distribution.api-by-becki.hosted_zone_id
|
2022-09-17 17:30:57 +01:00
|
|
|
evaluate_target_health = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_route53_record" "api-by-becki-acm" {
|
|
|
|
for_each = {
|
|
|
|
for dvo in aws_acm_certificate.api-by-becki.domain_validation_options : dvo.domain_name => {
|
|
|
|
name = dvo.resource_record_name
|
|
|
|
record = dvo.resource_record_value
|
|
|
|
type = dvo.resource_record_type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allow_overwrite = true
|
|
|
|
name = each.value.name
|
|
|
|
records = [each.value.record]
|
|
|
|
ttl = 60
|
|
|
|
type = each.value.type
|
|
|
|
zone_id = aws_route53_zone.gmemca.zone_id
|
|
|
|
}
|