SlideShare a Scribd company logo
1 of 37
Download to read offline
© 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 !

More Related Content

What's hot

Introduction to AWS Amplify and the Amplify CLI Toolchain
Introduction to AWS Amplify and the Amplify CLI ToolchainIntroduction to AWS Amplify and the Amplify CLI Toolchain
Introduction to AWS Amplify and the Amplify CLI ToolchainAWS Germany
 
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubCi/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubBoaz Ziniman
 
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...Amazon Web Services
 
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018Amazon Web Services
 
Building CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless ApplicationsBuilding CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless ApplicationsAmazon Web Services
 
Building a Cross-Agency Shared Service
Building a Cross-Agency Shared ServiceBuilding a Cross-Agency Shared Service
Building a Cross-Agency Shared ServiceAmazon Web Services
 
Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...
Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...
Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...Amazon Web Services
 
Building APIs with Amazon API Gateway
Building APIs with Amazon API GatewayBuilding APIs with Amazon API Gateway
Building APIs with Amazon API GatewayAmazon Web Services
 
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...Edureka!
 
Deep Learning at AWS: Embedding & Attention Models
Deep Learning at AWS: Embedding & Attention ModelsDeep Learning at AWS: Embedding & Attention Models
Deep Learning at AWS: Embedding & Attention ModelsAmazon Web Services
 
Serverless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless EventServerless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless EventBoaz Ziniman
 
Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...
Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...
Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...Amazon Web Services
 
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS DatabasesIVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS DatabasesAmazon Web Services Japan
 
Thinking Asynchronously Full Vesion - Utah UG
Thinking Asynchronously Full Vesion - Utah UGThinking Asynchronously Full Vesion - Utah UG
Thinking Asynchronously Full Vesion - Utah UGEric Johnson
 
Testing Your App Before Launch: An Introduction to AWS Device Farm
Testing Your App Before Launch: An Introduction to AWS Device FarmTesting Your App Before Launch: An Introduction to AWS Device Farm
Testing Your App Before Launch: An Introduction to AWS Device FarmAmazon Web Services
 
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky..."Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...Provectus
 
Intro to AWS Amplify Toolchain: Mobile Week SF
Intro to AWS Amplify Toolchain: Mobile Week SFIntro to AWS Amplify Toolchain: Mobile Week SF
Intro to AWS Amplify Toolchain: Mobile Week SFAmazon Web Services
 
AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...
AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...
AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...Amazon Web Services
 

What's hot (20)

Introduction to AWS Amplify and the Amplify CLI Toolchain
Introduction to AWS Amplify and the Amplify CLI ToolchainIntroduction to AWS Amplify and the Amplify CLI Toolchain
Introduction to AWS Amplify and the Amplify CLI Toolchain
 
Ci/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO ClubCi/CD for AWS Lambda Projects - JLM CTO Club
Ci/CD for AWS Lambda Projects - JLM CTO Club
 
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
Building APIs with Amazon API Gateway: re:Invent 2018 Recap at the AWS Loft -...
 
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
 
Lambda Layers & Runtime API
Lambda Layers & Runtime APILambda Layers & Runtime API
Lambda Layers & Runtime API
 
Building CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless ApplicationsBuilding CICD Pipelines for Serverless Applications
Building CICD Pipelines for Serverless Applications
 
Building a Cross-Agency Shared Service
Building a Cross-Agency Shared ServiceBuilding a Cross-Agency Shared Service
Building a Cross-Agency Shared Service
 
Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...
Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...
Migrate to a Fully Managed Application Streaming Service on AWS with AppStrea...
 
Deep Dive into AWS SAM
Deep Dive into AWS SAMDeep Dive into AWS SAM
Deep Dive into AWS SAM
 
Building APIs with Amazon API Gateway
Building APIs with Amazon API GatewayBuilding APIs with Amazon API Gateway
Building APIs with Amazon API Gateway
 
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...
Amazon Redshift Tutorial | AWS Tutorial for Beginners | AWS Certification Tra...
 
Deep Learning at AWS: Embedding & Attention Models
Deep Learning at AWS: Embedding & Attention ModelsDeep Learning at AWS: Embedding & Attention Models
Deep Learning at AWS: Embedding & Attention Models
 
Serverless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless EventServerless use cases with AWS Lambda - More Serverless Event
Serverless use cases with AWS Lambda - More Serverless Event
 
Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...
Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...
Accelerating Your Portfolio Migration to AWS Using AWS Migration Hub - ENT321...
 
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS DatabasesIVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
 
Thinking Asynchronously Full Vesion - Utah UG
Thinking Asynchronously Full Vesion - Utah UGThinking Asynchronously Full Vesion - Utah UG
Thinking Asynchronously Full Vesion - Utah UG
 
Testing Your App Before Launch: An Introduction to AWS Device Farm
Testing Your App Before Launch: An Introduction to AWS Device FarmTesting Your App Before Launch: An Introduction to AWS Device Farm
Testing Your App Before Launch: An Introduction to AWS Device Farm
 
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky..."Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...
"Automating AWS Infrastructure with PowerShell", Martin Beeby, AWS Dev Day Ky...
 
Intro to AWS Amplify Toolchain: Mobile Week SF
Intro to AWS Amplify Toolchain: Mobile Week SFIntro to AWS Amplify Toolchain: Mobile Week SF
Intro to AWS Amplify Toolchain: Mobile Week SF
 
AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...
AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...
AWS Lambda Layers, the Runtime API, & Nested Applications: re:Invent 2018 Rec...
 

Similar to AWS DevDay AWS SAM을 이용한 백오피스 마이그레이션

Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural PatternsAmazon Web Services
 
How to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda RuntimeHow to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda RuntimeDonnie Prakoso
 
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWSServerless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWSCodeOps Technologies LLP
 
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & MicroservicesIVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & MicroservicesAmazon Web Services Japan
 
Serverless Architecture and Best Practices
Serverless Architecture and Best PracticesServerless Architecture and Best Practices
Serverless Architecture and Best PracticesAmazon Web Services
 
Serverless Architecture - Design Patterns and Best Practices
Serverless Architecture - Design Patterns and Best PracticesServerless Architecture - Design Patterns and Best Practices
Serverless Architecture - Design Patterns and Best PracticesAmazon Web Services
 
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発Amazon Web Services Japan
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep DiveAmazon Web Services
 
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Amazon Web Services
 
Getting Started with AWS Lambda & Serverless Computing
Getting Started with AWS Lambda & Serverless ComputingGetting Started with AWS Lambda & Serverless Computing
Getting Started with AWS Lambda & Serverless ComputingAmazon Web Services
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesAmazon Web Services
 
Serverless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversServerless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversAmazon Web Services
 
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...Amazon Web Services
 
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...Amazon Web Services
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivBoaz Ziniman
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Amazon Web Services
 
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...Amazon Web Services
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Amazon Web Services
 
Serverless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversServerless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversAmazon Web Services
 
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...Amazon Web Services
 

Similar to AWS DevDay AWS SAM을 이용한 백오피스 마이그레이션 (20)

Serverless Architectural Patterns
Serverless Architectural PatternsServerless Architectural Patterns
Serverless Architectural Patterns
 
How to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda RuntimeHow to Use AWS Lambda Layers and Lambda Runtime
How to Use AWS Lambda Layers and Lambda Runtime
 
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWSServerless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
 
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & MicroservicesIVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
 
Serverless Architecture and Best Practices
Serverless Architecture and Best PracticesServerless Architecture and Best Practices
Serverless Architecture and Best Practices
 
Serverless Architecture - Design Patterns and Best Practices
Serverless Architecture - Design Patterns and Best PracticesServerless Architecture - Design Patterns and Best Practices
Serverless Architecture - Design Patterns and Best Practices
 
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep Dive
 
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
Unlocking Agility with the AWS Serverless Application Model (SAM) - AWS Summi...
 
Getting Started with AWS Lambda & Serverless Computing
Getting Started with AWS Lambda & Serverless ComputingGetting Started with AWS Lambda & Serverless Computing
Getting Started with AWS Lambda & Serverless Computing
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Serverless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversServerless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about servers
 
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
 
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
Building Serverless Applications with Amazon DynamoDB & AWS Lambda - Workshop...
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
 
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
 
Serverless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversServerless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about servers
 
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
Developing and Implementing APIs at Scale, the Servless Way - Ed Lima - AWS T...
 

Recently uploaded

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
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 textsMaria Levchenko
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Recently uploaded (20)

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

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 !