Terraform Aws Next Js

screenshot of Terraform Aws Next Js
nextjs

Terraform module for building and deploying Next.js apps to AWS. Supports SSR (Lambda), Static (S3) and API (Lambda) pages.

Overview

The Terraform Next.js module for AWS is a zero-config Terraform module designed for self-hosting Next.js sites serverless on AWS Lambda. This module supports various features like unlimited parallel deployments of Next.js apps, support for different types of pages (static, SSG, Lambda, and API pages), automatic expiration of old static assets, rewrites & redirects, and image optimization support.

Features

  • Supports any version of Next.js
  • Terraform v0.15+
  • Unlimited parallel deployments of Next.js apps (atomic deployments)
  • Static, SSG, Lambda, and API pages (with dynamic routes)
  • Automatic expiration of old static assets
  • Rewrites & Redirects
  • Image Component & Image Optimization support
  • Incremental Static Regeneration (under development)
  • Middleware (Not supported by Lambda@Edge / CloudFront functions) (planned)
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.