DEV Community

loading...

Discussion on: Getting Started with AWS Lambda and Node.js

Collapse
shmdhussain12 profile image
Mohamed Hussain • Edited

Great Adnan...Clear Explanation on what to do with AWS Lamdba...one question , is that possible to stop the api gateway which we created for roll-a-dice temporarily, if so how could I do it?....

Do we need to include the node_modules folder when we upload the zip to lambda?

Collapse
adnanrahic profile image
Adnan Rahić Author

You can't "stop" the API Gateway entirely, but you can add an API Key to rate-limit the endpoint.

Yes, you need to include the node_modules. I tend to write Lambda code locally and use the Serverless Framework to deploy the code and resources. Check out this article I wrote to learn how.