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


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: >
Sample SAM Template for sam-appGlobals:
Timeout: 3
Type: AWS::Serverless::Function
CodeUri: hello_world/
Handler: app.lambda_handler
Runtime: python3.7
Type: Api
Path: /hello
Method: get
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
Description: "Hello World Lambda Function ARN"
Value: !GetAtt HelloWorldFunction.Arn
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