aws-samples / authorization-lambda-at-edge

Code demonstrates authorization with Lambda@Edge and JSON Web Tokens (JWTs)
Apache License 2.0
103 stars 39 forks source link

EdgeAuthFunction fails #13

Open nmflavio opened 2 years ago

nmflavio commented 2 years ago

Embedded stack arn:aws:cloudformation:us-east-1:075322910062:stack/auth-at-edge3-LambdaAtEdge-XXPTTG24SVQC/22ec28e0-52c5-11ec-89c0-12b7ccc51f57 was not successfully created: The following resource(s) failed to create: [EdgeAuthFunction].

fgerardwltn24 commented 2 years ago

It fails because of deprecated node version.
Quickfix, until it is resolved: You can fix this for - you - by changing the root template file and the embedded edge-auth template file. You can download this here and change the url of the edge lambda file: https://s3.amazonaws.com/cloudfront-blog-resources/authorization-lambda-at-edge/edge-auth.template

The Edge-Auth-Lambda file has to bo uploaded somewhere public in s3 with a changed node version inside.