We use Serverless Framework to do production ready deployments.
To install this example to bootstrap your project, run the following command:
npx serverless install -u https://github.com/nanlabs/devops-reference/tree/main/examples/serverless-rds-postgres -n my-projectYou’ll need to have Node 16.13.2 or later on your local development machine (but it’s not required on the server). You can use fnm to easily switch Node versions between different projects.
fnm use
npm installTo deploy the app to AWS, you'll first need to configure your AWS credentials. There are many ways to set your credentials, for more information refer to the AWS documentation.
Once set you can deploy your app using the serverless framework with:
npm run sls:deploy