ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
IaC AWS Infra
/ HBSmith
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
? Why Serverless?
? How to migration to Serverless
? AWS SAM
? IaC
? Wrap up
? Q&A
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
? HBSmith
? , , .
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless?
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless
( )
ex)
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless
.
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless
? .
? .
?
.
? .
App1
App2
App3
App4
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless
EC2 ?
?
?
?
App1 App2
App3 App4
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why Serverless
Serverless
? .
?
?
? Scale out
? Availability AWS
Lambda
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
Serverless ?
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
AWS Serverless Express
? Node Express App Lambda
? .
? AWS Lambda Amazon Linux
? API Gateway Express App
? AWS Lambda Node version
AWS
Lambda
Amazon API
Gateway
ASE
Express
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
Application Lambda
App1
App2
App3
App4
AWS
Lambda
Amazon API
Gateway
Amazon?
Route 53
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
.
.
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
1. FrontEnd js, css Lambda .
? SPA Static Web Hosting
? S3 Lambda
Amazon?
Route 53
Amazon
CloudFront
Amazon?
S3
AWS
Lambda
Amazon API
Gateway
Amazon?
Route 53
Amazon?
S3
Amazon
CloudFront
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
2. Lambda RDB .
? Lambda Reserved Concurrency .
? API DB .
? RDB API .
3. .
? Lambda /tmp readonly .
? Lambda S3 .
4. API Gateway payload
? Signed url S3 .
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
?
?
?
? .
? .
?
? 502
? Request limit increase
app
AWS
Lambda
Amazon API
Gateway
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to migration to Serverless
? !
? 15
? (Cold Start)
? API Gateway
? https://docs.aws.amazon.com/ko_kr/apigateway/latest/
developerguide/limits.html
? Lambda
? https://docs.aws.amazon.com/lambda/latest/dg/limits.html
? .
? , , .
? Cost = AWS Billing - No Ops Benefits
app
AWS
Lambda
Amazon API
Gateway
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
Serverless frameworks
AWS SAM
(Serverless Application Model)
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
Why SAM
?
? AWS
?
?
? AWS CloudFormation
?
? Serverless
?
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SAM .
AWS SAM
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
CloudFormation .
AWS::ApiGateway::RestApi
AWS::ApiGateway::Account
AWS::ApiGateway::Resource
AWS::ApiGateway::Stage
AWS::ApiGateway::Method
AWS::ApiGateway::Authorizer
AWS::ApiGateway::Deployment
AWS::Serverless::Ap
i
CloudFormation
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
CLI
?
$ sam init ¡ªruntime python
? Local test event payload
$ sam generate-event s3 ¡ªbucket my-bucket ¡ªkey test-obj.json
? AWS Lambda
$ sam local invoke test.py -e payload.json
? AWS Api Gateway & Lambda Api
$ sam local start-api
? package, deploy, logs, validate
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
CloudFormation
? template transform .
? transform: AWS::Serverless-2016-10-31
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
¡­.
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SAM
.
? aws-labs
? repo: https://github.com/awslabs/serverless-application-model
? CloudFormation SAM .
? slack
? https://awssamopensource.splashthat.com
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
Infrastructure as Code ?
, ,
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
IaC tool
? CloudFormation
? AWS
? AWS template
? CLI
? Terraform
? Ansible
? Chef
? Puppet
AWS?
CloudFormation
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
3R
? Repeatable: .
? Reproducible: .
? Reliable: .
Server
OS
Middleware
Application
Server
OS
Middleware
Application
Server
OS
Middleware
Application
AWS AWS&IaC
Network Network Network
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
CloudFormation VPC .
Amazon
VPC
VPC NAT
gateway
Internet
gateway
router Elastic IP
address
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
SAM .
AWS
Lambda
Amazon API
Gateway
Amazon?
DynamoDB
Amazon?
S3
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
.
AWS
Lambda
Amazon API
Gateway
Amazon?
DynamoDB
Amazon?
S3
Amazon?
SNS
Amazon
CloudWatch
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
SAM CI/CD .
Amazon
VPC
AWS ?
CodeDeploy
AWS ?
CodeBuild
AWS ?
CodePipeline
Amazon?
S3
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
.
Amazon?
Athena
Amazon
VPC
AWS ?
CodeDeploy
AWS ?
CodeBuild
AWS ?
CodePipeline
Amazon?
S3
event AWS
Lambda
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IaC
.
Amazon
VPC
AWS ?
CodeDeploy
AWS ?
CodeBuild
AWS ?
CodePipeline
Amazon?
S3 AWS
Lambda
Amazon API
Gateway
Amazon?
DynamoDB
Amazon?
S3
Amazon?
SNS
Amazon
CloudWatch
Amazon?
Athena event
AWS
Lambda
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Wrap up
AWS Lambda .
AWS SAM Serverless resource .
AWS S3 .
Serverless RDB .
Infrastructure as Code .
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DevOps Team
AWS Tech Partner
.
? &
? .
? 11 !
AWS .
https://hbsmith.io
HBSmith
? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Q&A
? , .
? #AWSDevDay !
Ad

Recommended

CI/CD for AWS Lambda Projects - IsraelCloud Meetup
CI/CD for AWS Lambda Projects - IsraelCloud Meetup
Boaz Ziniman
?
Serverless Applications with AWS SAM
Serverless Applications with AWS SAM
Chris Munns
?
Introduction to AWS Amplify and the Amplify CLI Toolchain
Introduction to AWS Amplify and the Amplify CLI Toolchain
AWS Germany
?
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO Club
Boaz Ziniman
?
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...
Edureka!
?
Serverless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless Event
Boaz Ziniman
?
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
Amazon Web Services Japan
?
Thinking Asynchronously Full Vesion - Utah UG
Thinking Asynchronously Full Vesion - Utah UG
Eric Johnson
?
How to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda Runtime
Donnie Prakoso
?
Serverless Architectural Patterns ?and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns ?and Best Practices - Madhu Shekar - AWS
CodeOps Technologies LLP
?
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
Amazon Web Services Japan
?
Amazon SageMaker ÍÆÕ“¥¨¥ó¥É¥Ý¥¤¥ó¥È¤òÀûÓä·¤¿¥¢¥×¥ê¥±©`¥·¥ç¥óé_°k
Amazon SageMaker ÍÆÕ“¥¨¥ó¥É¥Ý¥¤¥ó¥È¤òÀûÓä·¤¿¥¢¥×¥ê¥±©`¥·¥ç¥óé_°k
Amazon Web Services Japan
?
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
Boaz Ziniman
?
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
AWS Germany
?
Serverless Architectural Patterns
Serverless Architectural Patterns
Adrian Hornsby
?
re:Invent 2023 - The Pragmatic Serverless Python Developer
re:Invent 2023 - The Pragmatic Serverless Python Developer
Heitor Lessa
?
Introduction to Serverless
Introduction to Serverless
Steven Bryen
?
AWS Black Belt Online Seminar 2018 re:Invent Recap: Compute, Container and Ne...
AWS Black Belt Online Seminar 2018 re:Invent Recap: Compute, Container and Ne...
Amazon Web Services Japan
?
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Chris Munns
?
Devops on serverless
Devops on serverless
S¨¦bastien ? Stormacq
?
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
?
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
?
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
?
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
?
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
?
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
?
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
?
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Josef Weingand
?
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
?
Mastering AI Workflows with FME by Mark Do?ring
Mastering AI Workflows with FME by Mark Do?ring
Safe Software
?

More Related Content

Similar to AWS DevDay AWS SAM? ??? ???? ?????? (12)

How to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda Runtime
Donnie Prakoso
?
Serverless Architectural Patterns ?and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns ?and Best Practices - Madhu Shekar - AWS
CodeOps Technologies LLP
?
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
Amazon Web Services Japan
?
Amazon SageMaker ÍÆÕ“¥¨¥ó¥É¥Ý¥¤¥ó¥È¤òÀûÓä·¤¿¥¢¥×¥ê¥±©`¥·¥ç¥óé_°k
Amazon SageMaker ÍÆÕ“¥¨¥ó¥É¥Ý¥¤¥ó¥È¤òÀûÓä·¤¿¥¢¥×¥ê¥±©`¥·¥ç¥óé_°k
Amazon Web Services Japan
?
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
Boaz Ziniman
?
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
AWS Germany
?
Serverless Architectural Patterns
Serverless Architectural Patterns
Adrian Hornsby
?
re:Invent 2023 - The Pragmatic Serverless Python Developer
re:Invent 2023 - The Pragmatic Serverless Python Developer
Heitor Lessa
?
Introduction to Serverless
Introduction to Serverless
Steven Bryen
?
AWS Black Belt Online Seminar 2018 re:Invent Recap: Compute, Container and Ne...
AWS Black Belt Online Seminar 2018 re:Invent Recap: Compute, Container and Ne...
Amazon Web Services Japan
?
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Chris Munns
?
Devops on serverless
Devops on serverless
S¨¦bastien ? Stormacq
?
How to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda Runtime
Donnie Prakoso
?
Serverless Architectural Patterns ?and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns ?and Best Practices - Madhu Shekar - AWS
CodeOps Technologies LLP
?
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
Amazon Web Services Japan
?
Amazon SageMaker ÍÆÕ“¥¨¥ó¥É¥Ý¥¤¥ó¥È¤òÀûÓä·¤¿¥¢¥×¥ê¥±©`¥·¥ç¥óé_°k
Amazon SageMaker ÍÆÕ“¥¨¥ó¥É¥Ý¥¤¥ó¥È¤òÀûÓä·¤¿¥¢¥×¥ê¥±©`¥·¥ç¥óé_°k
Amazon Web Services Japan
?
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
Boaz Ziniman
?
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
AWS Germany
?
Serverless Architectural Patterns
Serverless Architectural Patterns
Adrian Hornsby
?
re:Invent 2023 - The Pragmatic Serverless Python Developer
re:Invent 2023 - The Pragmatic Serverless Python Developer
Heitor Lessa
?
Introduction to Serverless
Introduction to Serverless
Steven Bryen
?
AWS Black Belt Online Seminar 2018 re:Invent Recap: Compute, Container and Ne...
AWS Black Belt Online Seminar 2018 re:Invent Recap: Compute, Container and Ne...
Amazon Web Services Japan
?
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
Chris Munns
?

Recently uploaded (20)

Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
?
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
?
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
?
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
?
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
?
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
?
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
?
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Josef Weingand
?
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
?
Mastering AI Workflows with FME by Mark Do?ring
Mastering AI Workflows with FME by Mark Do?ring
Safe Software
?
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
?
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
?
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
?
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
?
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
?
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
?
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
?
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
?
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
?
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
?
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
?
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
?
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
?
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
?
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
?
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
?
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
?
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Josef Weingand
?
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
?
Mastering AI Workflows with FME by Mark Do?ring
Mastering AI Workflows with FME by Mark Do?ring
Safe Software
?
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
?
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
?
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
?
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
?
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
?
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
?
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
?
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
?
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
?
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
?
Ad

AWS DevDay AWS SAM? ??? ???? ??????

  • 1. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM IaC AWS Infra / HBSmith
  • 2. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ? Why Serverless? ? How to migration to Serverless ? AWS SAM ? IaC ? Wrap up ? Q&A
  • 3. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ? HBSmith ? , , .
  • 4. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless?
  • 5. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless ( ) ex)
  • 6. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless .
  • 7. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless ? . ? . ? . ? . App1 App2 App3 App4
  • 8. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless EC2 ? ? ? ? App1 App2 App3 App4
  • 9. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why Serverless Serverless ? . ? ? ? Scale out ? Availability AWS Lambda
  • 10. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless Serverless ?
  • 11. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless AWS Serverless Express ? Node Express App Lambda ? . ? AWS Lambda Amazon Linux ? API Gateway Express App ? AWS Lambda Node version AWS Lambda Amazon API Gateway ASE Express
  • 12. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless Application Lambda App1 App2 App3 App4 AWS Lambda Amazon API Gateway Amazon? Route 53
  • 13. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless . .
  • 14. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless 1. FrontEnd js, css Lambda . ? SPA Static Web Hosting ? S3 Lambda Amazon? Route 53 Amazon CloudFront Amazon? S3 AWS Lambda Amazon API Gateway Amazon? Route 53 Amazon? S3 Amazon CloudFront
  • 15. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless 2. Lambda RDB . ? Lambda Reserved Concurrency . ? API DB . ? RDB API . 3. . ? Lambda /tmp readonly . ? Lambda S3 . 4. API Gateway payload ? Signed url S3 .
  • 16. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless ? ? ? ? . ? . ? ? 502 ? Request limit increase app AWS Lambda Amazon API Gateway
  • 17. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to migration to Serverless ? ! ? 15 ? (Cold Start) ? API Gateway ? https://docs.aws.amazon.com/ko_kr/apigateway/latest/ developerguide/limits.html ? Lambda ? https://docs.aws.amazon.com/lambda/latest/dg/limits.html ? . ? , , . ? Cost = AWS Billing - No Ops Benefits app AWS Lambda Amazon API Gateway
  • 18. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM
  • 19. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM Serverless frameworks AWS SAM (Serverless Application Model)
  • 20. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM Why SAM ? ? AWS ? ? ? AWS CloudFormation ? ? Serverless ?
  • 21. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SAM . AWS SAM
  • 22. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM CloudFormation . AWS::ApiGateway::RestApi AWS::ApiGateway::Account AWS::ApiGateway::Resource AWS::ApiGateway::Stage AWS::ApiGateway::Method AWS::ApiGateway::Authorizer AWS::ApiGateway::Deployment AWS::Serverless::Ap i CloudFormation
  • 23. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM CLI ? $ sam init ¡ªruntime python ? Local test event payload $ sam generate-event s3 ¡ªbucket my-bucket ¡ªkey test-obj.json ? AWS Lambda $ sam local invoke test.py -e payload.json ? AWS Api Gateway & Lambda Api $ sam local start-api ? package, deploy, logs, validate
  • 24. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM CloudFormation ? template transform . ? transform: AWS::Serverless-2016-10-31 AWSTemplateFormatVersion: 2010-09-09 Transform: AWS::Serverless-2016-10-31 Resources: ¡­.
  • 25. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SAM . ? aws-labs ? repo: https://github.com/awslabs/serverless-application-model ? CloudFormation SAM . ? slack ? https://awssamopensource.splashthat.com
  • 26. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC Infrastructure as Code ? , ,
  • 27. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC IaC tool ? CloudFormation ? AWS ? AWS template ? CLI ? Terraform ? Ansible ? Chef ? Puppet AWS? CloudFormation
  • 28. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC 3R ? Repeatable: . ? Reproducible: . ? Reliable: . Server OS Middleware Application Server OS Middleware Application Server OS Middleware Application AWS AWS&IaC Network Network Network
  • 29. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC CloudFormation VPC . Amazon VPC VPC NAT gateway Internet gateway router Elastic IP address
  • 30. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC SAM . AWS Lambda Amazon API Gateway Amazon? DynamoDB Amazon? S3
  • 31. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC . AWS Lambda Amazon API Gateway Amazon? DynamoDB Amazon? S3 Amazon? SNS Amazon CloudWatch
  • 32. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC SAM CI/CD . Amazon VPC AWS ? CodeDeploy AWS ? CodeBuild AWS ? CodePipeline Amazon? S3
  • 33. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC . Amazon? Athena Amazon VPC AWS ? CodeDeploy AWS ? CodeBuild AWS ? CodePipeline Amazon? S3 event AWS Lambda
  • 34. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IaC . Amazon VPC AWS ? CodeDeploy AWS ? CodeBuild AWS ? CodePipeline Amazon? S3 AWS Lambda Amazon API Gateway Amazon? DynamoDB Amazon? S3 Amazon? SNS Amazon CloudWatch Amazon? Athena event AWS Lambda
  • 35. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Wrap up AWS Lambda . AWS SAM Serverless resource . AWS S3 . Serverless RDB . Infrastructure as Code .
  • 36. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DevOps Team AWS Tech Partner . ? & ? . ? 11 ! AWS . https://hbsmith.io HBSmith
  • 37. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Q&A ? , . ? #AWSDevDay !