From the course: Learning Amazon Web Services Lambda

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Deploy your AWS SAM project to the cloud

Deploy your AWS SAM project to the cloud

- [Instructor] Now that you have your functions ready, it is time to deploy this infrastructure and code to the cloud. For that, we are going to use SAM CLI. The first step before deploying is to build your project. Building the project gets all the dependencies into your project. And when using SAM, we will use the command sam build. This command copies all the project source files to a temporary subdirectory and install the dependencies for the functions. It ignores test code and development dependencies. So let's try that one in our code. So let's do sam build. We already have tried sam build when we were doing local testing so this is something that you have tried already. So we have build and then if we check our application, we have the build directory here with the two functions and the template YAML. Inside the functions, you will see that there is the code, but there is no .testing or the events or…

Contents