© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
2
-
-
2
--
0%
5%
7%
2%
20%
9%
A33 A33 2
A33 3 A33 4
A33 5 A33 %
%
2 34
5
A0a721 EC2
C215ai1e4 Se46ice
Dr. Werner Vogels, Amazon.com CTO
re:Invent 2015 Keynote
SERVICES (ANYTHING)EVENT SOURCE FUNCTION
Bring yEIr Ewn cEd=
• 1Ed=.AG JaJa 2ythEn GE
• JaJa ( 4caBa CBEAIr= 등의
v떠한 JVMSi wv.
• Bring yEIr Ewn Bibrari=G
유연한 호출 경d
• ,J=nt Si 호출 옵션 (yb
)84 omt들과 통합)
• 3,4T )2. 호출 NW ()CaMEn
)2. Gat=way와 연동)
단s한 자원 g델
• 128MBl터 3GBT지 64MB
단위d 메ge 설정
• 할당된 메ge에 mc하y
C26 h V트웍 자원 할당
• u제 n용a Uz 보P
효과적인 R한 통제
• )84 .)M (.d=ntity and
)cc=GG Manag=C=nt) 3EB=을
n용한 u행 R한 설정
• )84 이j트 rt에 대한
자원 정책
② Amazon S3 파일 업로드
③ AWS ambda
코드 실행
① A 이3지 업로드 ④ 압축 및 크기 변경
⑤ 저장
Internet
Mobile
apps
AWS
Lambda
functions
API Gateway
DyanamoDB
Update
A
G
D
B
Amazon
Cognito
Amazon API
Gateway
AWS
Lambda
Amazon
DynamoDB
Amazon
ElastiCache
Amazon
RDS
View Blog Posts
(GETs)
Manage/edit blog posts
(POSTs)
Web-federated identity
& Cognito User Pools AWS
Lambda
Triggers for sign-ups
Amazon
SES
Mailers
Amazon
CloudFront
Amazon S3 S3 Events
On AWS Lambda
Static
Contents
Mobile
Apps
Websites
Partner
Services
https://aws.amazon.com/ko/solutions/case-studies/bustle/
5
Chalice Framework
n dW
r l
Tu N
Lb f S
s
-
a ijp
Lb
3 y Lb
S ep
A (
go m
to
r -
IF A
) A
-
IF A
- IF A IF A
r
hk O J
DD D
dX
Pv J D A
A D
J D C DFI
G D
tU k J DF GA F
F F
•
•
$
$ ) )
( ) (
"name": {
"s3_bucket": "bucket-name",
"aws_region": "ap-northeast-2",
"app_function": "app.app",
"django_settings": "your_project.settings”
"environment_variables": {"your_key": "your_value"},
"keep_warm": true,
"memory_size": 128,
"vpc_config": { "SubnetIds": ["subnet-12345678"] }
} https://github.com/Miserlou/Zappa
•
•
https://github.com/awslabs/aws-serverless-express
Source Build Test Production
Third Party
Tooling
AWS CodeCommit AWS CodeBuild
AWS CodeDeploy
AWS Elastic Beanstalk
AWS CloudFormation
AWS CodePipeline
AWS CodeStar
AWS IAM
Amazon
CloudWathch
3rd Party Extensions
•
•
•
•
•
•
S M
K
/ O
A
1 / .
D
2 D W
3
E BR .
E D AR A
L C
https://github.com/aws-samples/aws-mobile-react-sample
https://github.com/awslabs/lambda-refarch-imagerecognition
상태 머신
실행
사진 메타
데이터 추출
사진 메타
데이터 저장
이미지 인식
서비스 호출
•
•
•
https://www.youtube.com/watch?v=DY1cvXpKWTk
•
ü
•
ü
•
ü
ü

프론트엔드 개발자를 위한 서버리스 - 윤석찬 (AWS 테크에반젤리스트)