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
nbakvsh
02/17/2023, 12:24 AM
ahh I see, so create a lambda function and put the contents on config.js in there?
s
Snackdex
02/17/2023, 12:24 AM
yes
n
nbakvsh
02/17/2023, 12:25 AM
I'll give a try real quick
s
Snackdex
02/17/2023, 12:25 AM
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!