

# Changing (updating) AWS Serverless application settings by using the AWS Toolkit for JetBrains
<a name="sam-update"></a>

You must first deploy the AWS serverless application that you want to change, if you haven't deployed it already.
**Note**  
To deploy a serverless application that contains an AWS Lambda function, and deploy that function with any nondefault or optional properties, you must first set those properties in the function's corresponding AWS SAM template file (for example, in a file named `template.yaml` within the project). For a list of available properties, see [AWS::Serverless::Function](https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction) in the [awslabs/serverless-application-model](https://github.com/awslabs/serverless-application-model/) repository on GitHub.

1. With the **Project** tool window already open and displaying the project that contains the serverless application's files, open the project's `template.yaml` file. Change the file's contents to reflect the new settings, and then save and close the file.

1. If you need to switch to a different AWS Region to deploy the serverless application to, do that now.

1. Right-click the project's `template.yaml` file, and then choose **Deploy Serverless Application**.  
![\[Choosing the Deploy Serverless Application command\]](http://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/images/deploy-serverless-application.png)

1. Complete the [Deploy Serverless Application](deploy-serverless-application-dialog.md) dialog box, and then choose **Deploy**. The AWS Toolkit for JetBrains updates the corresponding AWS CloudFormation stack for the deployment. 

   If the deployment fails, you can try to determine why by viewing event logs for the stack.