Does anyone have experience deploying to Lambda? I...
# support-questions-legacy
n
Does anyone have experience deploying to Lambda? I'm at step 4 here but not sure where the config.js is supposed to go exactly. https://supertokens.com/docs/thirdpartyemailpassword/serverless/with-aws-lambda/backend-config
s
if you're following the guide, then you should have already created a layer that basically allows you to call anything from 'supertokens-node'
you're then creating an "auth" lambda that will be called via api gateway
step 4 assumes that you are working off a nodejs lambda that is configurable via the aws lambda editor
so you can just create the file in the editor that is provided
it should be here (instead of the "image" tab it should show the actual preview). my auth lambda is dockerized so you can't see it in the aws console. but in the end it looks the same
n
ahh I see, so create a lambda function and put the contents on config.js in there?
s
yes
n
I'll give a try real quick
s
if you click on the next page
you'll see an "auth.js" file
that is basically going to be the entrypoint of the lambda
for example, this is what mine looks like.
except its typescript and i renamed "auth" to "app". hope that helps!
3 Views