This code helps deploying the sample CRUD typescript app to AWS lambda using Serverless framework.
Before you continue, please clone this repository to your local machine.
# Change directory to your preferred location
cd <local dev path>
# Clone the repo
git clone https://github.com/vedsingh-fullstack/serverless-typescript.git
# Alternatively, with SSH,
git clone [email protected]:vedsingh-fullstack/serverless-typescript.git
Install the packages via NPM
npm install
We can test the functions locally using serverless offline command with local dynamodb setup
serverless offline start
We can also test already deployed function locally using serverless cli
sls invoke -f function-name
We can deploy all the function at once to serverlss using sls deploy
,
sls deploy --aws-profile profile_name
We can also deploy individual function which is quicker,
sls deploy function --function function-name --aws-profile profile_name