December 2019
Intermediate to advanced
382 pages
9h 43m
English
A service is our unit of project. It's our top-level name for the service we are creating and contains all the functions, events, and resources we need for the project. You can build everything you need to in one service, or have multiple services for a single serverless application. It's up to you to define what the delineation is and where the domain boundaries are.
We only need to create the service once, and some boilerplate files are created for us to get going quickly. Using the serverless CLI command, we can run the following code. This will create our service in the directory path we specify:
sls create --template aws-nodejs --path serverless-hello-world
At this point, we can choose which language we are writing our functions ...