Deploying a serverless app

Now that we have the artifact uploaded to an S3 bucket and the packaged.yaml file generated as well, let's run the sam deploy command to deploy the Hello World serverless app that we built in this chapter.

Run the below command to deploy the Serverless app on to AWS. sam deploy \ --template-file packaged.yaml \ --stack-name hello-world-app \ --capabilities CAPABILITY_IAM

The following is a screenshot of the command:

By running the sam deploy command, your serverless application is created using AWS CloudFormation.

You can look at the resources SAM CLI created for you through the AWS Console. In this case, it should ...

Get Hands-On Serverless Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.