

# Build your application with Amazon SAM
<a name="serverless-building"></a>

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 Amazon SAM](using-sam-cli-build.md).

**Topics**
+ [Introduction to building with Amazon SAM](using-sam-cli-build.md)
+ [Default build with Amazon SAM](serverless-sam-cli-using-build.md)
+ [Customize builds with Amazon SAM](building-lambda-functions.md)