Build your application with Amazon SAM - Amazon Serverless Application Model
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Build your application with Amazon SAM

After you have added your infrastructure as code (IaC) to your Amazon SAM template, you’ll be ready to start building your application using the sam build command. This command creates build artifacts from the files in your application project directory (that is, your Amazon SAM template file, application code, and any applicable language-specific files and dependencies). These build artifacts prepare your serverless application for later steps of your application's development, such as local testing and deploying to the Amazon Cloud. Both testing and deploying use build artifacts as inputs.

You can use sam build to build your entire serverless application. Additionally, you can create customized builds, like one's with specific functions, layers, or custom runtimes. To read more on how and why you use sam build, see the topics in this section. For an introduction to using the sam build command, see Introduction to building with the sam build command.