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

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
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...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

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 !