milliHQ / terraform-aws-next-js

Terraform module for building and deploying Next.js apps to AWS. Supports SSR (Lambda), Static (S3) and API (Lambda) pages.
https://registry.terraform.io/modules/milliHQ/next-js/aws
Apache License 2.0
1.46k stars 152 forks source link

Lambda functions no longer support NodeJS `v14` . #389

Open AshGw opened 4 months ago

AshGw commented 4 months ago

After running terraform apply, it errors out with:

... The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions.

Running with Terraform1.8.0 on AWS provider plugin v4.67.0. This module's version: 1.0.0-canary.5

emyriounis commented 3 months ago

Unfortunately, this module is no longer maintained. AWS has deprecated nodejs v14 runtime for aws lambda (soon v16 too)

I'm developing a new tf module for deploying next.js to aws. Feel free to give it a try