postmodern.

Pattern 01

Serverless SSR

Multi-region server-side rendering on AWS Lambda with automatic CloudFront failover.

Status

Available module

Deployment scope

us-east-1 + us-west-2

Recommended version

~> 2.4

What you get

01

Serverless runtime

Lambda scales to zero between requests and removes server management overhead.

02

Automatic failover

CloudFront origin groups route around regional 5xx responses.

03

Production defaults

DNS, SSL, caching, and deployment wiring are ready to configure.

Start here

Add the module to your configuration and customize only what you need.

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

  project_name = "my-app"
  domain_name  = "example.com"
  subdomain    = "app"
}

Key inputs

  • project_name
  • domain_name
  • subdomain
  • primary_region
  • dr_region
  • enable_dr

Useful outputs

  • application_url
  • lambda_function_name_primary
  • cloudfront_distribution_id
  • dynamodb_table_name

Built with

  • Nuxt 3
  • AWS Lambda
  • CloudFront
  • Terraform