# Needed for gmail workspace and juntekim.com resource "aws_route53_zone" "main" { name = "mealcraft.com" } resource "aws_route53_zone" "second" { name = "mealcraft.co.uk" } resource "aws_route53_record" "txt_main" { name = "mealcraft.com" type = "TXT" ttl = "300" records = ["google-site-verification=2aboGYgSXVAN7o06u6ZQgBAGeylfV4CL_5hLZJldTCs"] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "txt_second" { name = "mealcraft.co.uk" type = "TXT" ttl = "300" records = ["google-site-verification=bvyqS_UJmEQjZOD1gin4eWXlk1xbNkxif5Hrh2e79F4"] zone_id = aws_route53_zone.second.zone_id } resource "aws_route53_record" "cname_mailpoet1" { name = "mailpoet1._domainkey.mealcraft.com" type = "CNAME" ttl = "300" records = ["dkim1.sendingservice.net"] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "cname_mailpoet2" { name = "mailpoet2._domainkey.mealcraft.com" type = "CNAME" ttl = "300" records = ["dkim2.sendingservice.net"] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "txt_mailpoet" { name = "_mailpoet.mealcraft.com" type = "TXT" ttl = "300" records = ["0d8da0c4aa902bd7d8914489852aac26"] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "another_text_mailpoet" { name = "_dmarc.mealcraft.com" type = "TXT" ttl = "300" records = ["v=DMARC1; p=none;"] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "mx_main" { name = "mealcraft.com" type = "MX" ttl = "300" records = [ "1 ASPMX.L.GOOGLE.COM", "5 ALT1.ASPMX.L.GOOGLE.COM", "5 ALT2.ASPMX.L.GOOGLE.COM", "10 ALT3.ASPMX.L.GOOGLE.COM", "10 ALT4.ASPMX.L.GOOGLE.COM" ] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "mx_second" { name = "mealcraft.co.uk" type = "MX" ttl = "300" records = [ "1 ASPMX.L.GOOGLE.COM", "5 ALT1.ASPMX.L.GOOGLE.COM", "5 ALT2.ASPMX.L.GOOGLE.COM", "10 ALT3.ASPMX.L.GOOGLE.COM", "10 ALT4.ASPMX.L.GOOGLE.COM" ] zone_id = aws_route53_zone.second.zone_id } resource "aws_route53_record" "a_mealcraft" { name = "mealcraft.com" type = "A" ttl = "300" records = [var.public_ip] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "a_wildcard_mealcraft" { name = "*.mealcraft.com" type = "A" ttl = "300" records = [var.public_ip] zone_id = aws_route53_zone.main.zone_id } resource "aws_route53_record" "cname_www_mealcraft" { name = "www.mealcraft.com" type = "CNAME" ttl = "300" records = ["meal-craft-73h1m6.custom-domain-proxy.flutterflow.app"] zone_id = aws_route53_zone.main.zone_id } # Create the Route 53 hosted zone for juntekim.com resource "aws_route53_zone" "juntekim" { name = "juntekim.com" } # A record for juntekim.com pointing to the public IP resource "aws_route53_record" "a_juntekim" { name = "juntekim.com" type = "A" ttl = "300" records = [var.public_ip] zone_id = aws_route53_zone.juntekim.zone_id } # A record for wildcard subdomains of juntekim.com pointing to the public IP resource "aws_route53_record" "a_wildcard_juntekim" { name = "*.juntekim.com" type = "A" ttl = "300" records = [var.public_ip] zone_id = aws_route53_zone.juntekim.zone_id } # CNAME record for www.juntekim.com to redirect to the main domain resource "aws_route53_record" "cname_www_juntekim" { name = "www.juntekim.com" type = "CNAME" ttl = "300" records = ["juntekim.com"] zone_id = aws_route53_zone.juntekim.zone_id } #### RecallPlnanner.com # Create the Route 53 hosted zone for recallplanner.com resource "aws_route53_zone" "recallplanner" { name = "recallplanner.com" } # A record for recallplanner.com pointing to the public IP resource "aws_route53_record" "a_recallplanner" { name = "recallplanner.com" type = "A" ttl = "300" records = [var.public_ip] zone_id = aws_route53_zone.recallplanner.zone_id } # A record for wildcard subdomains of recallplanner.com pointing to the public IP resource "aws_route53_record" "a_wildcard_recallplanner" { name = "*.recallplanner.com" type = "A" ttl = "300" records = [var.public_ip] zone_id = aws_route53_zone.recallplanner.zone_id } # CNAME record for www.recallplanner.com to redirect to the main domain resource "aws_route53_record" "cname_www_recallplanner" { name = "www.recallplanner.com" type = "CNAME" ttl = "300" records = ["recallplanner.com"] zone_id = aws_route53_zone.recallplanner.zone_id } # TXT record for Google Site Verification resource "aws_route53_record" "txt_recallplanner" { name = "recallplanner.com" type = "TXT" ttl = "300" records = ["google-site-verification=jmj-PFshzPJy4IK1z7InBIQjj6RKDW0cIBZuaPSbWCc"] zone_id = aws_route53_zone.recallplanner.zone_id }