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:
- Download the SAM YAML template, API Gateway Swagger file, and AWS Lambda code .zip file in a single directory.
- Create an Amazon S3 bucket (from the AWS console or the API) with any available name, such as CloudNative-WeatherService.
- 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 ...