Widen / cloudfront-auth

An AWS CloudFront Lambda@Edge function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
ISC License
626 stars 149 forks source link

enforcing Nodejs version on building lambda function? #59

Closed liquidcarbon closed 4 years ago

liquidcarbon commented 4 years ago

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)

liquidcarbon commented 4 years ago

Nevermind, you can pick runtime when uploading the zipped function :)