Skip to content

Latest commit

 

History

History

fastify-aws-stream

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Fastify on AWS with Stream Support

See above how to develop and deploy to AWS.

Development

First, install the libraries with:

npm i

Then, to test locally, run:

npm run build
npm run start

Deployment

These steps only work if you have already created the lambda, otherwise see how to create.

The lambda handler must be set to dist/index.handler to run smoothly.

To deploy to AWS, first change the config variables inside package.json.

  • aws_profile: Put the configured profile name inside $HOME/credentials, the default value is default.
  • aws_region: The region where your lambda is located.
  • aws_lambda_name: The name of your lambda.

You must run:

npm run deploy

With this command it will compile, zip all node_modules and then update the function with its zip file.