SlideShare a Scribd company logo
1 of 47
Download to read offline
AWS Cloud Kata for Start-Ups and Developers
Taipei
Managing the Continuous Delivery
of Codes to AWS Lambda
Pahud Hsieh
AWS Cloud Kata for Start-Ups and Developers
What is AWS Lambda?

Challenges in serverless development

Environment pinning with API Gateway and Lambda

Continuous delivery in different scenarios

Best practices in security and development

Demo
Agenda
AWS Cloud Kata for Start-Ups and Developers
A bit about me
• IT Pro and developer for the past 16
years
• Chief Architect from miiiCasa Inc.
• Experienced in Serverless and ECS
across multiple AWS regions
• AWS all-5 certificates holder
AWS Cloud Kata for Start-Ups and Developers
What is Lambda, actually?
What is Lambda
AWS Cloud Kata for Start-Ups and Developers
homegrown variant of Linux container
with high speed of work routing and placement
What is Lambda
AWS Cloud Kata for Start-Ups and Developers
single/multiple instances
monolithic applications
What is Lambda
AWS Cloud Kata for Start-Ups and Developers
https://twitter.com/adrianco/status/736553530689998848
What is Lambda
AWS Cloud Kata for Start-Ups and Developers
API
Function
API
Function
API
Function
API
Function
API
Function
API
Function
API
Function
[micro] Application design in the cloud
AWS Cloud Kata for Start-Ups and Developers
• Startup and termination
• Freeze and thaw cycle
Cold Start Terminate Freeze
Thaw
Handler
Understanding Container Reuse
AWS Cloud Kata for Start-Ups and Developers
Challenges in Serverless Development
Challenges
AWS Cloud Kata for Start-Ups and Developers
Local development and testing?

Securing your credentials?

Performance tuning and optimization?

Continuous delivery?

Language constraints?

Challenges
AWS Cloud Kata for Start-Ups and Developers
Continuous Delivery
Continuous Delivery
AWS Cloud Kata for Start-Ups and Developers
local
dev/test
end-to-end
test
update
alias
Fail
publish
Serverless Development Pipelines
Log and
Monitor
Slack
Analytics
AWS Cloud Kata for Start-Ups and Developers
Environment Pinning with
API Gateway and Lambda
Continuous Delivery
AWS Cloud Kata for Start-Ups and Developers
AWS Lambda CD Relevant Features
AWS Cloud Kata for Start-Ups and Developers
Function Versions
• Immutable versions of functions
• Per version configuration
• Per version cloudwatch metrics
• Cloudwatch Logs with version
attribute
• Export/Download the codes
AWS Cloud Kata for Start-Ups and Developers
Update Function Code
• update function with local zip bundle
• always update $LATEST version of
your lambda function
AWS Cloud Kata for Start-Ups and Developers
Publish Version
• Publishes a version of your function
from the current snapshot of
$LATEST.
AWS Cloud Kata for Start-Ups and Developers
Publish Version
• update the function version to which
the alias points.
AWS Cloud Kata for Start-Ups and Developers
Update Alias
$LATEST(95) STABLE TESTING
94 V
93 V
92
AWS Cloud Kata for Start-Ups and Developers
Update Alias
$LATEST(95) STABLE TESTING
94 V V
93
92
AWS Cloud Kata for Start-Ups and Developers
API Gateway CD Relevant Features
AWS Cloud Kata for Start-Ups and Developers
API Stages
AWS Cloud Kata for Start-Ups and Developers
API Gateway stage variables
AWS Cloud Kata for Start-Ups and Developers
API Gateway stage variables
AWS Cloud Kata for Start-Ups and Developers
Access stage variables in Lambda
AWS Cloud Kata for Start-Ups and Developers
Environment Pinning Table
API Gateway Lambda Custom Domain
/prod/Resources ReosurceManager:stable https://api.example.com
/dev/Resources
ReosurceManager:
$LATEST
https://dev.example.com
/qa/Resources ReosurceManager:qa https://qa.example.com
AWS Cloud Kata for Start-Ups and Developers
Continuous Delivery Scenarios
AWS Cloud Kata for Start-Ups and Developers
AWS CodeCommit and CodePipeline with Lambda

3rd Party Integrations
Continuous Delivery Scenarios
AWS Cloud Kata for Start-Ups and Developers
source
S3/Github
publish-to-Dev
test-Dev
release-Dev
AWS Pipeline Integration
PubNewVersion
TestNewVersion
RelNewVersion
AddItem
UpdateFunctionCode
AddItemTest
AddItemApiTest
InvokeInvoke
InvokeInvoke
Invoke
Invoke
Invoke
AWS Cloud Kata for Start-Ups and Developers
source
Local Laptop
3rd party integration
AddItem
UpdateFunctionCode
AddItemApiTest
Invoke
Invoke
Invoke
Runscope end-to-end testcallback
AWS Cloud Kata for Start-Ups and Developers
Best Practices
AWS Cloud Kata for Start-Ups and Developers
Securing your credentials

Leverage the nature of container reuse

Prewarm your Lambda functions
Best Practices
AWS Cloud Kata for Start-Ups and Developers
NEVER hardcode your credentials
AWS Cloud Kata for Start-Ups and Developers
Use CredentialProviderChain in AWS-SDK
https://gist.github.com/pahud/836481ae759147d3f493d3ead1f5406a
AWS Cloud Kata for Start-Ups and Developers
Define in API Gateway stage variables
Encrypt and save in AWS KMS
Save in S3 with Server-Side Encryption
For 3rd Party API Credentials
AWS Cloud Kata for Start-Ups and Developers
Leverage Container Reuse
AWS Cloud Kata for Start-Ups and Developers
• Startup and termination
• Freeze and thaw cycle
Cold Start Terminate Freeze
Thaw
Handler
Understanding Container Reuse
AWS Cloud Kata for Start-Ups and Developers
Show me the Codes!
AWS Cloud Kata for Start-Ups and Developers
AWS Cloud Kata for Start-Ups and Developers
AWS Cloud Kata for Start-Ups and Developers
Cloudwatch Events Integration
AWS Cloud Kata for Start-Ups and Developers
CloudWatch Events scheduled invocation
AWS Cloud Kata for Start-Ups and Developers
chalice - python serverless microframework by AWS

claudiajs - Deploy Node.js microservices to AWS easily

serverless - Serverless Framework

apex - Build, deploy, and manage AWS Lambda functions with ease
(with Go support!)

lambCI - Serverless continuous integration
Resources and Takeaways
AWS Cloud Kata for Start-Ups and Developers
Demo
AWS Cloud Kata for Start-Ups and Developers
What’s next?
A Hands-on Workshop 

on AWS Infrastructure Services
Date: Sep 29, 2016
AWS 10-Minute Tutorials
“Hello, World!” technical
documents to help you get
hands-on with AWS.
AWS Cloud Kata for Start-Ups and Developers
Thank You!
@pahudnet

More Related Content

What's hot

Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...
Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...
Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...
Amazon Web Services
 

What's hot (20)

雲端媒體串流
雲端媒體串流雲端媒體串流
雲端媒體串流
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理
 
Programming the Physical World with Device Shadows and Rules Engine
Programming the Physical World with Device Shadows and Rules EngineProgramming the Physical World with Device Shadows and Rules Engine
Programming the Physical World with Device Shadows and Rules Engine
 
Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...
Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...
Real World Development: Peeling The Onion – Migrating A Monolithic Applicatio...
 
初探 AWS 平台上的 Docker 服務
初探 AWS 平台上的 Docker 服務初探 AWS 平台上的 Docker 服務
初探 AWS 平台上的 Docker 服務
 
AWS Lambda 與 Amazon API Gateway 新功能介紹
AWS Lambda 與 Amazon API Gateway 新功能介紹AWS Lambda 與 Amazon API Gateway 新功能介紹
AWS Lambda 與 Amazon API Gateway 新功能介紹
 
Introduction to AWS CodeStar: Quickly develop, build, and deploy applications...
Introduction to AWS CodeStar: Quickly develop, build, and deploy applications...Introduction to AWS CodeStar: Quickly develop, build, and deploy applications...
Introduction to AWS CodeStar: Quickly develop, build, and deploy applications...
 
Getting Started with Docker on AWS
Getting Started with Docker on AWSGetting Started with Docker on AWS
Getting Started with Docker on AWS
 
Content Delivery: accelerare in modo sicuro e flessibile siti web e applicazioni
Content Delivery: accelerare in modo sicuro e flessibile siti web e applicazioniContent Delivery: accelerare in modo sicuro e flessibile siti web e applicazioni
Content Delivery: accelerare in modo sicuro e flessibile siti web e applicazioni
 
Application Delivery on Amazon Web Services for Developers
Application Delivery on Amazon Web Services for DevelopersApplication Delivery on Amazon Web Services for Developers
Application Delivery on Amazon Web Services for Developers
 
AWS re:Invent 2016: Workshop: Deploy a Swift Web Application on Amazon ECS (C...
AWS re:Invent 2016: Workshop: Deploy a Swift Web Application on Amazon ECS (C...AWS re:Invent 2016: Workshop: Deploy a Swift Web Application on Amazon ECS (C...
AWS re:Invent 2016: Workshop: Deploy a Swift Web Application on Amazon ECS (C...
 
AWS Serverless Introduction (Lambda)
AWS Serverless Introduction (Lambda)AWS Serverless Introduction (Lambda)
AWS Serverless Introduction (Lambda)
 
AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...
AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...
AWS re:Invent 2016: All Your Chats are Belong to Bots: Building a Serverless ...
 
Robots: The Fading Line Between Real and Virtual Worlds
Robots: The Fading Line Between Real and Virtual WorldsRobots: The Fading Line Between Real and Virtual Worlds
Robots: The Fading Line Between Real and Virtual Worlds
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
Python on AWS Lambda
Python on AWS Lambda Python on AWS Lambda
Python on AWS Lambda
 
如何快速開發與測試App
如何快速開發與測試App如何快速開發與測試App
如何快速開發與測試App
 
AWS Lambda and Serverless Cloud
AWS Lambda and Serverless CloudAWS Lambda and Serverless Cloud
AWS Lambda and Serverless Cloud
 
AWS Lambda Documentation
AWS Lambda DocumentationAWS Lambda Documentation
AWS Lambda Documentation
 

Viewers also liked

基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻
Mason Mei
 
基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅
Mason Mei
 

Viewers also liked (20)

基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻
 
運用AWS開創與發展事業
運用AWS開創與發展事業運用AWS開創與發展事業
運用AWS開創與發展事業
 
AWS Summit OaaS Talk by ChinaNetCloud
AWS Summit OaaS Talk by ChinaNetCloudAWS Summit OaaS Talk by ChinaNetCloud
AWS Summit OaaS Talk by ChinaNetCloud
 
基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅基于Aws的dev ops实践指南 王毅
基于Aws的dev ops实践指南 王毅
 
深入探討雲端安全
深入探討雲端安全深入探討雲端安全
深入探討雲端安全
 
淺談系統監控與 AWS CloudWatch 的應用
淺談系統監控與 AWS CloudWatch 的應用淺談系統監控與 AWS CloudWatch 的應用
淺談系統監控與 AWS CloudWatch 的應用
 
Building microservices in python @ pycon2017
Building microservices in python @ pycon2017Building microservices in python @ pycon2017
Building microservices in python @ pycon2017
 
Aws容器服务详解
Aws容器服务详解Aws容器服务详解
Aws容器服务详解
 
數位媒體雲端儲存案例和技術分享 (AWS Storage Options for Media Industry)
數位媒體雲端儲存案例和技術分享 (AWS Storage Options for Media Industry)數位媒體雲端儲存案例和技術分享 (AWS Storage Options for Media Industry)
數位媒體雲端儲存案例和技術分享 (AWS Storage Options for Media Industry)
 
Aws summit devops 云端多环境自动化运维和部署
Aws summit devops   云端多环境自动化运维和部署Aws summit devops   云端多环境自动化运维和部署
Aws summit devops 云端多环境自动化运维和部署
 
Serverless api gateway + lambda
Serverless api gateway + lambdaServerless api gateway + lambda
Serverless api gateway + lambda
 
Autoscaling Spark on AWS EC2 - 11th Spark London meetup
Autoscaling Spark on AWS EC2 - 11th Spark London meetupAutoscaling Spark on AWS EC2 - 11th Spark London meetup
Autoscaling Spark on AWS EC2 - 11th Spark London meetup
 
1. 利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)
1.	利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)1.	利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)
1. 利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)
 
無伺服器架構和Containers on AWS入門
無伺服器架構和Containers on AWS入門 無伺服器架構和Containers on AWS入門
無伺服器架構和Containers on AWS入門
 
基于AWS Lambda的无服务器架构在Strikingly中的应用
基于AWS Lambda的无服务器架构在Strikingly中的应用基于AWS Lambda的无服务器架构在Strikingly中的应用
基于AWS Lambda的无服务器架构在Strikingly中的应用
 
AWS ELB Tips & Best Practices
AWS ELB Tips & Best PracticesAWS ELB Tips & Best Practices
AWS ELB Tips & Best Practices
 
初探AWS 平台上的 NoSQL 雲端資料庫服務
初探AWS 平台上的 NoSQL 雲端資料庫服務初探AWS 平台上的 NoSQL 雲端資料庫服務
初探AWS 平台上的 NoSQL 雲端資料庫服務
 
AWS電商和零售業解決方案介紹
AWS電商和零售業解決方案介紹AWS電商和零售業解決方案介紹
AWS電商和零售業解決方案介紹
 
零到千万可扩展架构 AWS Architecture Overview
零到千万可扩展架构 AWS Architecture Overview零到千万可扩展架构 AWS Architecture Overview
零到千万可扩展架构 AWS Architecture Overview
 
Getting Started with AWS EC2. From Zero to Hero
Getting Started with AWS EC2. From Zero to HeroGetting Started with AWS EC2. From Zero to Hero
Getting Started with AWS EC2. From Zero to Hero
 

Similar to 管理程式對AWS LAMBDA持續交付

Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Amazon Web Services
 

Similar to 管理程式對AWS LAMBDA持續交付 (20)

Startup Best Practices on AWS
Startup Best Practices on AWSStartup Best Practices on AWS
Startup Best Practices on AWS
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
 
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
AWS August Webinar Series - Building Serverless Backends with AWS Lambda and ...
 
Running Microservices and Docker with AWS Elastic Beanstalk
Running Microservices and Docker with AWS Elastic BeanstalkRunning Microservices and Docker with AWS Elastic Beanstalk
Running Microservices and Docker with AWS Elastic Beanstalk
 
What’s new in serverless - re:Invent 2020
What’s new in serverless - re:Invent 2020What’s new in serverless - re:Invent 2020
What’s new in serverless - re:Invent 2020
 
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
 
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
Track 4 Session 4_ MAD02 MAD 04 如何藉由 CICD 流程管理容器化和無伺服器應用
 
Application Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless WorldApplication Lifecycle Management in a Serverless World
Application Lifecycle Management in a Serverless World
 
Lambdaless and AWS CDK
Lambdaless and AWS CDKLambdaless and AWS CDK
Lambdaless and AWS CDK
 
Amazon AWS | What is Amazon AWS | AWS Tutorial | AWS Training | Edureka
Amazon AWS | What is Amazon AWS | AWS Tutorial | AWS Training | EdurekaAmazon AWS | What is Amazon AWS | AWS Tutorial | AWS Training | Edureka
Amazon AWS | What is Amazon AWS | AWS Tutorial | AWS Training | Edureka
 
Deep Dive on Serverless Stack
Deep Dive on Serverless StackDeep Dive on Serverless Stack
Deep Dive on Serverless Stack
 
Deep dive on Serverless application development
Deep dive on Serverless application developmentDeep dive on Serverless application development
Deep dive on Serverless application development
 
SRV302 Deep Dive on Serverless Application Development
SRV302 Deep Dive on Serverless Application DevelopmentSRV302 Deep Dive on Serverless Application Development
SRV302 Deep Dive on Serverless Application Development
 
Building Serverless Web Applications - May 2017 AWS Online Tech Talks
Building Serverless Web Applications  - May 2017 AWS Online Tech TalksBuilding Serverless Web Applications  - May 2017 AWS Online Tech Talks
Building Serverless Web Applications - May 2017 AWS Online Tech Talks
 
Building Serverless Web Applications - May 2017 AWS Online Tech Talks
Building Serverless Web Applications - May 2017 AWS Online Tech TalksBuilding Serverless Web Applications - May 2017 AWS Online Tech Talks
Building Serverless Web Applications - May 2017 AWS Online Tech Talks
 
SMC301 The State of Serverless Computing
SMC301 The State of Serverless ComputingSMC301 The State of Serverless Computing
SMC301 The State of Serverless Computing
 
Serverless design considerations for Cloud Native workloads
Serverless design considerations for Cloud Native workloadsServerless design considerations for Cloud Native workloads
Serverless design considerations for Cloud Native workloads
 
Continuous Integration e Delivery per (r)innovare lo sviluppo software e la g...
Continuous Integration e Delivery per (r)innovare lo sviluppo software e la g...Continuous Integration e Delivery per (r)innovare lo sviluppo software e la g...
Continuous Integration e Delivery per (r)innovare lo sviluppo software e la g...
 
Eliminate repetitive work by using AWS Serverless Application Repository
Eliminate repetitive work by using AWS Serverless Application RepositoryEliminate repetitive work by using AWS Serverless Application Repository
Eliminate repetitive work by using AWS Serverless Application Repository
 

More from Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Recently uploaded

Recently uploaded (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

管理程式對AWS LAMBDA持續交付

  • 1. AWS Cloud Kata for Start-Ups and Developers Taipei Managing the Continuous Delivery of Codes to AWS Lambda Pahud Hsieh
  • 2. AWS Cloud Kata for Start-Ups and Developers What is AWS Lambda?
 Challenges in serverless development
 Environment pinning with API Gateway and Lambda
 Continuous delivery in different scenarios
 Best practices in security and development
 Demo Agenda
  • 3. AWS Cloud Kata for Start-Ups and Developers A bit about me • IT Pro and developer for the past 16 years • Chief Architect from miiiCasa Inc. • Experienced in Serverless and ECS across multiple AWS regions • AWS all-5 certificates holder
  • 4. AWS Cloud Kata for Start-Ups and Developers What is Lambda, actually? What is Lambda
  • 5. AWS Cloud Kata for Start-Ups and Developers homegrown variant of Linux container with high speed of work routing and placement What is Lambda
  • 6. AWS Cloud Kata for Start-Ups and Developers single/multiple instances monolithic applications What is Lambda
  • 7. AWS Cloud Kata for Start-Ups and Developers https://twitter.com/adrianco/status/736553530689998848 What is Lambda
  • 8. AWS Cloud Kata for Start-Ups and Developers API Function API Function API Function API Function API Function API Function API Function [micro] Application design in the cloud
  • 9. AWS Cloud Kata for Start-Ups and Developers • Startup and termination • Freeze and thaw cycle Cold Start Terminate Freeze Thaw Handler Understanding Container Reuse
  • 10. AWS Cloud Kata for Start-Ups and Developers Challenges in Serverless Development Challenges
  • 11. AWS Cloud Kata for Start-Ups and Developers Local development and testing?
 Securing your credentials?
 Performance tuning and optimization?
 Continuous delivery?
 Language constraints?
 Challenges
  • 12. AWS Cloud Kata for Start-Ups and Developers Continuous Delivery Continuous Delivery
  • 13. AWS Cloud Kata for Start-Ups and Developers local dev/test end-to-end test update alias Fail publish Serverless Development Pipelines Log and Monitor Slack Analytics
  • 14. AWS Cloud Kata for Start-Ups and Developers Environment Pinning with API Gateway and Lambda Continuous Delivery
  • 15. AWS Cloud Kata for Start-Ups and Developers AWS Lambda CD Relevant Features
  • 16. AWS Cloud Kata for Start-Ups and Developers Function Versions • Immutable versions of functions • Per version configuration • Per version cloudwatch metrics • Cloudwatch Logs with version attribute • Export/Download the codes
  • 17. AWS Cloud Kata for Start-Ups and Developers Update Function Code • update function with local zip bundle • always update $LATEST version of your lambda function
  • 18. AWS Cloud Kata for Start-Ups and Developers Publish Version • Publishes a version of your function from the current snapshot of $LATEST.
  • 19. AWS Cloud Kata for Start-Ups and Developers Publish Version • update the function version to which the alias points.
  • 20. AWS Cloud Kata for Start-Ups and Developers Update Alias $LATEST(95) STABLE TESTING 94 V 93 V 92
  • 21. AWS Cloud Kata for Start-Ups and Developers Update Alias $LATEST(95) STABLE TESTING 94 V V 93 92
  • 22. AWS Cloud Kata for Start-Ups and Developers API Gateway CD Relevant Features
  • 23. AWS Cloud Kata for Start-Ups and Developers API Stages
  • 24. AWS Cloud Kata for Start-Ups and Developers API Gateway stage variables
  • 25. AWS Cloud Kata for Start-Ups and Developers API Gateway stage variables
  • 26. AWS Cloud Kata for Start-Ups and Developers Access stage variables in Lambda
  • 27. AWS Cloud Kata for Start-Ups and Developers Environment Pinning Table API Gateway Lambda Custom Domain /prod/Resources ReosurceManager:stable https://api.example.com /dev/Resources ReosurceManager: $LATEST https://dev.example.com /qa/Resources ReosurceManager:qa https://qa.example.com
  • 28. AWS Cloud Kata for Start-Ups and Developers Continuous Delivery Scenarios
  • 29. AWS Cloud Kata for Start-Ups and Developers AWS CodeCommit and CodePipeline with Lambda
 3rd Party Integrations Continuous Delivery Scenarios
  • 30. AWS Cloud Kata for Start-Ups and Developers source S3/Github publish-to-Dev test-Dev release-Dev AWS Pipeline Integration PubNewVersion TestNewVersion RelNewVersion AddItem UpdateFunctionCode AddItemTest AddItemApiTest InvokeInvoke InvokeInvoke Invoke Invoke Invoke
  • 31. AWS Cloud Kata for Start-Ups and Developers source Local Laptop 3rd party integration AddItem UpdateFunctionCode AddItemApiTest Invoke Invoke Invoke Runscope end-to-end testcallback
  • 32. AWS Cloud Kata for Start-Ups and Developers Best Practices
  • 33. AWS Cloud Kata for Start-Ups and Developers Securing your credentials
 Leverage the nature of container reuse
 Prewarm your Lambda functions Best Practices
  • 34. AWS Cloud Kata for Start-Ups and Developers NEVER hardcode your credentials
  • 35. AWS Cloud Kata for Start-Ups and Developers Use CredentialProviderChain in AWS-SDK https://gist.github.com/pahud/836481ae759147d3f493d3ead1f5406a
  • 36. AWS Cloud Kata for Start-Ups and Developers Define in API Gateway stage variables Encrypt and save in AWS KMS Save in S3 with Server-Side Encryption For 3rd Party API Credentials
  • 37. AWS Cloud Kata for Start-Ups and Developers Leverage Container Reuse
  • 38. AWS Cloud Kata for Start-Ups and Developers • Startup and termination • Freeze and thaw cycle Cold Start Terminate Freeze Thaw Handler Understanding Container Reuse
  • 39. AWS Cloud Kata for Start-Ups and Developers Show me the Codes!
  • 40. AWS Cloud Kata for Start-Ups and Developers
  • 41. AWS Cloud Kata for Start-Ups and Developers
  • 42. AWS Cloud Kata for Start-Ups and Developers Cloudwatch Events Integration
  • 43. AWS Cloud Kata for Start-Ups and Developers CloudWatch Events scheduled invocation
  • 44. AWS Cloud Kata for Start-Ups and Developers chalice - python serverless microframework by AWS
 claudiajs - Deploy Node.js microservices to AWS easily
 serverless - Serverless Framework
 apex - Build, deploy, and manage AWS Lambda functions with ease (with Go support!)
 lambCI - Serverless continuous integration Resources and Takeaways
  • 45. AWS Cloud Kata for Start-Ups and Developers Demo
  • 46. AWS Cloud Kata for Start-Ups and Developers What’s next? A Hands-on Workshop 
 on AWS Infrastructure Services Date: Sep 29, 2016 AWS 10-Minute Tutorials “Hello, World!” technical documents to help you get hands-on with AWS.
  • 47. AWS Cloud Kata for Start-Ups and Developers Thank You! @pahudnet