diff --git a/iac/README.md b/iac/README.md index b521e18..ae37f80 100644 --- a/iac/README.md +++ b/iac/README.md @@ -59,8 +59,9 @@ This directory contains Terraform configurations for deploying AWS infrastructur - `aws_route53_zone.default` - Hosted zone for brignano.io - `aws_route53_zone.backup` - Hosted zone for anthonybrignano.com - DNS A and CNAME records pointing to Vercel hosting +- Subdomain records: www (alias), resume (CNAME to Vercel) -**Purpose:** Manages domain name resolution for both primary and backup domains. +**Purpose:** Manages domain name resolution for both primary and backup domains, including subdomain routing. ### 2. Email Service (SES) diff --git a/iac/locals.tf b/iac/locals.tf index a622dfb..0f6d7b7 100644 --- a/iac/locals.tf +++ b/iac/locals.tf @@ -9,4 +9,5 @@ locals { vercel_ip_address = "216.198.79.1" vercel_cname_record = "7db213ad1eff704d.vercel-dns-017.com" + vercel_cname_record_resume = "61434b17a818facc.vercel-dns-017.com" } diff --git a/iac/main.tf b/iac/main.tf index d3df36e..5849ad4 100644 --- a/iac/main.tf +++ b/iac/main.tf @@ -29,6 +29,14 @@ resource "aws_route53_record" "default_www" { } } +resource "aws_route53_record" "resume" { + zone_id = aws_route53_zone.default.zone_id + name = "resume.${aws_route53_zone.default.name}" + type = "CNAME" + ttl = 300 + records = [local.vercel_cname_record_resume] +} + ####################### # anthonybrignano.com # ####################### diff --git a/readme.md b/readme.md index ed64acd..50a13cf 100644 --- a/readme.md +++ b/readme.md @@ -61,7 +61,10 @@ Internet → Route 53 → Vercel (Website) - **Primary Domain:** brignano.io → Points to Vercel hosting - **Backup Domain:** anthonybrignano.com → Also points to Vercel - **DNS Provider:** AWS Route 53 for reliable DNS resolution -- **WWW Redirect:** Both domains support www. subdomain +- **Subdomains:** + - www.brignano.io → Alias to brignano.io + - resume.brignano.io → Points to Vercel hosting (separate deployment) + - www.anthonybrignano.com → Points to Vercel hosting ### 2. Email Forwarding - **Receive Email:** hi@brignano.io