Setup Basic Serverless Project
Learn to set up a basic Serverless Framework project from scratch.
We'll cover the following...
In this lesson, we'll focus on creating a basic Serveless project, which we'll then use in further lessons.
In the serverless.yml
file, we define the configurations and resources needed for our Serverless project. This file is crucial as it provides the Serverless Framework with instructions on how to deploy and manage the resources for our application.
When we start with an empty serverless.yml
file, we need to add the following components:
service
: This is where we specify the name of the service, which is a logical grouping of all the related resources and functions. In our case, we name itsweet-factory
.provider
: The provider section includes details about the cloud service provider, such as the name and the runtime environment. For our sweets factory project, we use AWS as the provider, and Node.js as the runtime (specifically, version 18.x).functions
: This section is where we ...