O'Reilly logo

Cloud Native Architectures by Piyum Zonooz, Erik Farr, Kamal Arora, Tom Laszewski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AWS SAM usage

Behind the scenes, AWS SAM uses AWS CloudFormation's change sets functionality (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html). In order to create our serverless weather microservice example using SAM, follow these steps:

  1. Download the SAM YAML template, API Gateway Swagger file, and AWS Lambda code .zip file in a single directory.
  2. Create an Amazon S3 bucket (from the AWS console or the API) with any available name, such as CloudNative-WeatherService.
  3. Now, it's time to upload the Lambda code and Swagger API file definition to the S3 bucket you created in the previous step and then update the SAM YAML file with their S3 locations. To do this, you can use the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required