aws-lambda-edge-basic-auth-terraform
aws-lambda-edge-basic-auth-terraform copied to clipboard
update runtime to nodejs18.x
nodejs12.x runtime is no longer supported:
│ Error: error creating Lambda Function (1): InvalidParameterValueException: The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs18.x) while creating or updating functions.
note: using nodejs18.x requires hashicorp/aws version 4.41.0 and above
EOL for nodejs16.x appears to be later this year: https://nodejs.org/en/blog/announcements/nodejs16-eol , so using nodejs18.x instead 🤷