![]() It’s also worth mentioning that DynamoDB local will require JRE which can be found here Getting Startedįirst, you’ll want to install those plugins as dev dependencies, so: npm i -save-dev serverless-offline serverless-dynamodb-local Serverless DynamoDB Local - This will create an emulation of DynamoDB locally which is required for the Lambdas in this scenario. Serverless Offline - Used to locally run Lambdas and API Gateway, will provide an endpoint per Lambda and supports hot reloading during development. Pluginsįor this we’re going to install several Serverless plugins, these provide additional functionality and cater for many common scenarios that may arise during development or simply enhancing IaC. You have different environments (beta/staging/production) and would like an env for local development to easily use specific configs.Īn example of this all working can be found here □. You want the ability to test your code locally whilst developing functionality and easily give other developers the same ability just by cloning and running the project. You have written some Serverless IaC and have created several Lambdas which need to either read or write to DynamoDB, the Lambdas are proxied through an API gateway. ![]() Setup not related to this article will be skipped for brevity.
0 Comments
Leave a Reply. |