How to deploy a Serverless project to AWS

To deploy a Serverless project to AWS, setup the aws-cli in terminal and in the current directory of the project run sls deploy.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 12/17/2022 at 16:09
Last Updated on 12/17/2022 at 17:33
Three flowers that represent AWS Lambda, Typescript & Serverless side by side. Beneath it sits the text "deploy".

To deploy a Serverless project to AWS, setup the aws-cli in terminal and in the current directory of the project run sls deploy.

The following article walks you through how to deploy our Open Source Typescript & Serverless project to AWS. We recommend cloning or recreating the repository before continuing.

git clone git@github.com:delasign/typescript-serverless-starter.git
View Github RepositoryRead Serverless's Deploy DocumentationHow to create a Typescript & Serverless projectHow to create an API using an AWS Lambda & API Gateway in Serverless

Step One: Setup your AWS Cli

A screenshot of the Serverless AWS Configuration documentation. A link to this documentation is provided below.

In order for Serverless to be able to be deployed, the was-cli must work with you terminal.

To set this up, please follow the Serverless Documentation provided in the link below.

Setup Serverless for deploying to AWS

Step Two: Set the current directory in Terminal

A screenshot of terminal showing how to set the current directory.

Open up the Terminal application and set the current directory to that of the Serverless project.

Step Three: Deploy

A screenshot of terminal showing the command that has to be ran to deploy the serverless project - this command is: sls deploy.

Run the following line to deploy the project:

sls deploy

Please note you need to run this command every time you wish to deploy the project to AWS. To test a function locally, follow the guide provided at the link below.

How to invoke a Serverless function locally using terminal

Any Questions ?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.

SubscribeInquireView All PostsView All ServicesView All Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe