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

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 Architecture and Best Practices
Serverless Architecture and Best PracticesServerless Architecture and Best Practices
Serverless Architecture and Best Practices
Amazon 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 Practices
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

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 

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 !