Looks like my NodeJS is too new for AWS.
Is there a quick fix, i.e. by editing function code?
com.amazonaws.services.cloudfront.model.InvalidLambdaFunctionAssociationException: The function has a runtime that is not supported by Lambda@Edge: nodejs12.x Function: arn:aws:lambda:us-east-1:512142439127:function:test-cloudfront-auth:1 Supported runtimes: [nodejs8.10, nodejs10.x, nodejs6.10, python3.7] (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidLambdaFunctionAssociation; Request ID: 94b45c33-d5f8-47cd-b82e-547c0572b6af)
Looks like my NodeJS is too new for AWS. Is there a quick fix, i.e. by editing function code?
com.amazonaws.services.cloudfront.model.InvalidLambdaFunctionAssociationException: The function has a runtime that is not supported by Lambda@Edge: nodejs12.x Function: arn:aws:lambda:us-east-1:512142439127:function:test-cloudfront-auth:1 Supported runtimes: [nodejs8.10, nodejs10.x, nodejs6.10, python3.7] (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidLambdaFunctionAssociation; Request ID: 94b45c33-d5f8-47cd-b82e-547c0572b6af)