Component 13

SSR DNS

Manage Route 53 alias records and ACM certificate issuance for an SSR site custom domain.

Status

Available component

Deployment scope

us-east-1 (CloudFront certificate)

Example version constraint

~> 0.3

Review published versions ↗

Usage example

Inputs in, outputs out. Illustrative wiring, not a standalone deployment.

Supply the CloudFront domain and hosted zone id, and either let the component request a certificate or pass an existing one in us-east-1. Configure provider requirements and credentials in your root module; check the documentation for all required inputs and version changes.

main.tf
module "dns" {
  source  = "pomo-studio/ssr-dns/aws"
  version = "~> 0.3"

  app_name                  = "my-app"
  enable_custom_domain      = true
  enable_route53            = true
  domain_name               = "example.com"
  full_domain               = "www.example.com"
  cloudfront_domain_name    = module.cloudfront.domain_name
  cloudfront_hosted_zone_id = module.cloudfront.hosted_zone_id
}

Key inputs

  • app_name
  • domain_name
  • full_domain
  • enable_custom_domain
  • enable_route53
  • certificate_arn

Useful outputs

  • certificate_arn
  • dns_validation_records
  • dns_cloudfront_record

What you get

01

Certificate automation

Requests and validates an ACM certificate through Route 53 by default.

02

Bring your own certificate

Attach an existing certificate for a shared or wildcard domain.

03

Alias record

Points the custom domain at the distribution.

Built with

  • Route 53
  • ACM
  • CloudFront
  • Terraform