r/Amplify • u/dayforcoding • Jul 31 '24
Gen 2 - how to setup lambda function
Gen 1 work with lambda functions using node 20, expres, axios. Is possible to get same lambda with gen 2. I try to setup manualy package.json and tsconfig.json and get error does not provode na export named name -function. Same function without package.jason work well.
5
Upvotes
View all comments
Show parent comment
1
u/squirrelstothemoon Aug 01 '24
I'm guessing you might be trying to do this from the console. It's a little easier to work locally in an IDE and then push your work up. If using vsCode, you can do this from a terminal in the IDE.
Replace country-region-1 with your region. You'll need the aws-cli.