Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using cognito-at-edge as a layer on a lambda@edge function #70

Open
gabrielcho opened this issue Jun 22, 2023 · 1 comment
Open

Using cognito-at-edge as a layer on a lambda@edge function #70

gabrielcho opened this issue Jun 22, 2023 · 1 comment

Comments

@gabrielcho
Copy link

gabrielcho commented Jun 22, 2023

How can we help?

I plan to use cognito-at-edge as a lambda layer in a lambda@edge function but when I try to bind it to my CloudFront triggers I get the following error:

The function cannot have a layer. Function: arn:aws:lambda:us-east-1:XXXXXXXXXXX:function:lambda-basic-auth:15

What am I missing? Is this supposed to run on a lambda@edge function?

@gabrielcho gabrielcho changed the title Using cognito-at-edge on a lambda@edge function Using cognito-at-edge as a layer on a lambda@edge function Jun 22, 2023
@jeandek
Copy link
Contributor

jeandek commented Jun 23, 2023

Hi @gabrielcho,
This is supposed to run in a Lambda@Edge function. However, layers are not supported by Lambda@Edge (see docs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants