infra/terraform/artbybecki.com.tf
2022-08-28 14:55:56 +01:00

93 lines
2.4 KiB
HCL

resource "vercel_project" "artbybecki-vercel" {
name = "art-by-becki"
framework = "sveltekit"
git_repository = {
type = "github"
repo = "gmemstr/artbybecki.com"
}
}
resource "vercel_project_domain" "artbybecki-vercel-domain" {
project_id = vercel_project.artbybecki-vercel.id
domain = "artbybecki.com"
}
# Disabled until domain is migrated to AWS.
# resource "aws_route53_zone" "artbybeckicom" {
# name = "artbybecki.com"
# }
# resource "aws_route53_record" "artbybeckicom-a" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "artbybecki.com"
# type = "A"
# ttl = 300
# records = ["76.76.21.21"]
# }
# resource "aws_route53_record" "artbybeckicom-api" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "api"
# type = "A"
# ttl = 300
# records = ["37.16.0.82"]
# }
# resource "aws_route53_record" "artbybeckicom-api-6" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "api"
# type = "AAAA"
# ttl = 300
# records = ["2a09:8280:1::6:39f8"]
# }
# resource "aws_route53_record" "artbybeckicom-api-verification" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "_acme-challenge.api"
# type = "CNAME"
# ttl = 300
# records = ["api.artbybecki.com.wzq08.flydns.net."]
# }
# resource "aws_route53_record" "artbybeckicom-world" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "world"
# type = "A"
# ttl = 300
# records = ["37.16.0.82"]
# }
# resource "aws_route53_record" "artbybeckicom-world-6" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "world"
# type = "AAAA"
# ttl = 300
# records = ["2a09:8280:1::6:39f8"]
# }
# resource "aws_route53_record" "artbybeckicom-world-verification" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "_acme-challenge.world"
# type = "CNAME"
# ttl = 300
# records = ["world.artbybecki.com.wzq08.flydns.net."]
# }
# resource "aws_route53_record" "artbybeckicom-images" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "images"
# type = "CNAME"
# ttl = 300
# records = ["f000.backblazeb2.com"]
# }
# resource "aws_route53_record" "artbybeckicom-gsv" {
# zone_id = aws_route53_zone.artbybeckicom.zone_id
# name = "artbybecki.com"
# type = "TXT"
# ttl = 300
# records = ["google-site-verification=u9EyJHPaDkmUQC7kucw4j7C4mdGR2q4IwkAdJtQjC80"]
# }