Overview on deploying Serverless services

I. First wave: bash script

II. Cloudformation Era

JSON Format
YAML Format

III. Does Terraform make it better?

Lambda resource deployed by Terraform

IV. AWS SAM

pip install aws-sam-cli
sam package \
--template-file template.yml \
--output-template-file package.yml \
--s3-bucket my-bucket
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sam-app
Sample SAM Template for sam-appGlobals:
Function:
Timeout: 3
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: hello_world/
Handler: app.lambda_handler
Runtime: python3.7
Events:
HelloWorld:
Type: Api
Properties:
Path: /hello
Method: get
Outputs:
HelloWorldApi:
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
HelloWorldFunction:
Description: "Hello World Lambda Function ARN"
Value: !GetAtt HelloWorldFunction.Arn
HelloWorldFunctionIamRole:
Description: "Implicit IAM Role created for Hello World function"
Value: !GetAtt HelloWorldFunctionRole.Arn
sam deploy \
--template-file ./packaged.yaml
--stack-name mystack
--capabilities CAPABILITY_IAM

V. Serverless Framework

npm install -g serverless
sls deploy

VI. My take on this

--

--

--

Cloud technologies and solutions lover, https://cdcloudlogix.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

💥The values will be adjusted when we include the new #DEX token as the reward! — $WSG🎯

Parallel Radix Sort Algorithm Using Message Passing Interface (MPI)

Building custom Headless CMS that powers Blogging platform

Cloudflare’s DNS Content Hub Case Study — Part 1: SEO (8.0K keywords)

cloudflare dns content hub webpage screenshot

Incremental Backups with rsync

What is Git and Github?

KYVE Introduction

Puffin TV Chatbot: A brand new feature to quickly send links onto your Smart TV.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Olivier Butterbach

Olivier Butterbach

Cloud technologies and solutions lover, https://cdcloudlogix.com

More from Medium

AWS CloudWatch ile Logları Kontrol Etme ( VPC Trafiği İzleme )

AWS Cognito is not DB, but just Authorization and Autication Service.

Migrating a Multi Client Web Service to AWS

AWS Elastic cache (Redis) connection issue from the EC2 (amazon Linux 2) instance