1. The document discusses microservices architecture and how Netflix transitioned from a monolithic architecture to microservices. Key aspects discussed include breaking the monolith into many small, independent services that are loosely coupled.
2. Netflix's microservices architecture is composed of hundreds of microservices running on thousands of servers. Each service focuses on doing a small, well-defined piece of work. Services communicate through well-defined APIs and share no code or databases.
3. The document provides examples of how other companies like Samsung and Vingle have also adopted microservices architectures on AWS, breaking monolithic applications into independent, scalable services. This allows for independent deployments, rapid innovation, and improved resilience.
Deep Dive on Amazon Elastic Container Service (ECS) and FargateAmazon Web Services
?
This document summarizes a presentation about deploying and managing containerized microservices applications on Amazon ECS. It discusses key components like ECS, ECR, and container instances. It then covers topics like deployment with CloudFormation, cost optimization with reserved instances and spot instances, scaling, security practices like patching and IAM roles, and monitoring with CloudWatch.
AWS Fargate is a technology for Amazon ECS and EKS* that allows you to run containers without having to manage servers or clusters. Join us to learn more about how Fargate works, why we built it, and how you can get started using it to run containers today.
AWS Fargate is a technology for Amazon ECS and EKS* that allows you to run containers without having to manage servers or clusters. Join us to learn more about how Fargate works, why we built it, and how you can get started using it to run containers today.
1. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk ???? ? ???
?? ????
??? ???? ????
AWS
2. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
? AWS Elastic Beanstalk? ? ????
? AWS Elastic Beanstalk ????
? AWS Elastic Beanstalk ??????? ?? ??
? AWS Elastic Beanstalk?? ?????? ?? ??
? AWS Elastic Beanstalk?? ?????? ??? ????
? References
3. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk? ? ????
4. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
????? ??? ??? ?? Pain Point
? ??? ??, ?????, ??? ??
: ??? ???
? ??, ??????, ?? ???, ??? ??? ???
????? ???? ????? ???? ??? ??
: ??? ??? ??? ??
? ??????? ??? ??/?? ??? ?????
: ?? ??? ?? ???
? ??/?? ??
: ? ?? ?????
5. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
.???? ??????
6. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
On-premise??
?? ??
100%
.???? ??????
7. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
.???? ??????
50%
AWS EC2??
?? ??
8. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk
???? ??????
< 10%
9. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????
?????
?-??
??
???? ??? ?? ???
AWS infrastructure
10. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk ?
? ? ??? ??????
11. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk? ?? ?? ????
??? ?? ?? ??? ??
???? AWS ??? (? : EC2 ????, S3 ?)? ???? ??? ??
??? ???
??
??? ???
??? ??
??
???? ??
?? ??
12. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk ????
13. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk? ??????
Elastic Beanstalk? ? ??????/? ???? ????, ????,
????? ?? ?? ??? ? ? ??? ?? ?? ??? ??????.
14. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk ?? ??
? ??? ??? ??? API ???
15. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk: ?? ???
? Reference: https://aws.amazon.com/ko/elasticbeanstalk/
16. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk: ? ? ?? ??
17. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk
??????? ?? ??
18. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? ?? in Elastic Beanstalk
Elastic Beanstalk? ?? ??? ?????.
19. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? ?? in Elastic Beanstalk
?? ???? ???..
20. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? ?? in Elastic Beanstalk
?? ???? ??? ????..
21. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? ?? in Elastic Beanstalk
?????? ????..
22. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? ?? in Elastic Beanstalk
?? ?? ???? ??? ????.
23. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? ?? in Elastic Beanstalk
?? DNS ??? ?? ??? publish???.
24. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? ?? in Elastic Beanstalk
?! ??? ??? ? ???? ?? ??? ?? S3? ???.
25. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??????? ?? ?? by Elastic Beanstalk
??? ??
HTTP ??
?????? ??
?????
????
???
Elastic Beanstalk? ??
?? ? EC2 ?????
??? ???? ??
????? ?????
??? ?? ??? ??
???? ??????
???? ??
???? ?? AWS Elastic Beanstalk (EB) ? ?? ? ??
26. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk? ?? ??? ?????? ??
Java .war file
Microsoft Web
Deploy package
PHP .zip file
Python .zip file
Git integrationIDE plugins
27. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?????? ???? Beanstalk?? ???
???? ?? Elastic Beanstalk
28. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?????? ??? ??? ??
01
02
03
04
??
?? ??
?? ????
?????? ?
?? ???OR
?????? (RDS)
??
Optional
???? ??? ???
???? ?? ? ?? ??
Supported Platforms
29. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Beanstalk? ????? ??? ????
???? ??? ?,
AWS?? ??
????? ???
???? ?, ??
30. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
???? ?? Elastic Beanstalk
???????? ?? ?? ???? ??? ??(Environment)? ?? ??
31. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?????? ?? ??: Application & Environment
Application
Application versions ( v1, v2, ¡,vn)
Environment 1 Environment 2 Environment ¡ n
32. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??: ?? ??????? ??(EB CLI ??)
1. AWS Elastic Beanstalk Command Line Interface (EB CLI) ??
$ pip install ¨Cupgrade awsebcli
2. EB ?? EC2 instance? ??? Role ??
3. ?? ?????? ????
$ git clone https://github.com/awslabs/eb-node-express-sample.git
4. Elastic Beanstalk Application ??
$ eb init
5. ?? ??? ?? prompt? ?? ??
6. ??? ???? Application ??
$ eb create instance_profile demo-eb-sample-role
33. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??: ?? ??????? ????
1. ?????? ?? ???? (EB Console)
$ vi views/index.ejs
2. ?? ?? ?, ??? ?? ??(????? index.ejs)
$ unzip app*.zip -d app-ver1
$ cd app-ver1
$ vim views/index.ejs
3. ??? ????? ?? ? EB console? ?? ??? ? ??
$ zip ¨Cr app-ver2.zip ./*
4. ??? ??????? ? ????? ?? (???? ?? ?? ??)
34. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??:
ElasticBeanstalk Sample App
Deployment & Update (Using EB CLI)
35. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
36. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling in Elastic Beanstalk
Min/Max instances
Availability Zones
Scaling Cooldown
Triggers based scaling
Trigger Metric
Trigger Statistic
Measurement Period
Thresholds
Time-based scaling
Name
Min/Max Instance
Occurrence
One-time
Recurrent
Recurrence
(CRON expression)
37. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling in Elastic Beanstalk
38. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling in Elastic Beanstalk
39. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk??
?????? ?? ??
40. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?????? ????: ??????? ??
41. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?????? ????: ?? ??
? All at once: ?? ????? ??? ? ?? ??
? Rolling: ?? ??? ? ?? ??
? Rolling with additional batch: ?? ??? ? ?? ??, +1 ?? ??
? Immutable: ??? ???? ??? ??
42. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Environment?? ???? ?? ?? ??
* ???
Environment ?? ???? ?? ??
?? ????
All at Once*
Immutable
?????/????? ??
All at Once
Rolling*
Rolling with additional batch
Immutable
43. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? ??:
All At Once Deployments
44. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 0: All At Once
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.ap-northeast-2.elasticbeanstalk.com
v1v1
45. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 0: All At Once
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
46. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 1: All At Once
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
47. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? ??:
Rolling
48. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 0: Rolling
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
49. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 1: Rolling
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
50. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 2: Rolling
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
51. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 3: Rolling
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
52. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 4: Rolling
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
53. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? ??:
Rolling with Additional Batch
54. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 0: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
55. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 1: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
56. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 2: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
57. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 3: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
58. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 4: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2 v2 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
59. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 5: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2 v2 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
60. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 6: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2 v2 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
61. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 7: Rolling with Additional Batch
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
62. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? ??:
Immutable
63. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 0: Immutable
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
64. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 1: Immutable
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
Auto Scaling Group
v2
myapp.ap-northeast-2.elasticbeanstalk.com
65. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 2: Immutable
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
Auto Scaling Group
v2
myapp.ap-northeast-2.elasticbeanstalk.com
66. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 3: Immutable
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
Auto Scaling Group
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
67. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 4: Immutable
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
Auto Scaling Group
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
68. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 5: Immutable
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
Auto Scaling Group
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
69. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 6: Immutable
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
70. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?????? ????:
Blue/Green
71. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 0: Blue/Green
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
72. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 1: Blue/Green
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp_new.ap-northeast-2.elasticbeanstalk.com
??? Environment
73. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 2: Blue/Green
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp_new.ap-northeast-2.elasticbeanstalk.com
??? Environment
74. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 3: Blue/Green
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp_new.ap-northeast-2.elasticbeanstalk.com
??? Environment
75. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 4: Blue/Green
76. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 5: Blue/Green
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp.ap-northeast-2.elasticbeanstalk.com
??? Environment
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp_new.ap-northeast-2.elasticbeanstalk.com
URL ???
77. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?? 6: Blue/Green
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1 v1v1
myapp_new.ap-northeast-2.elasticbeanstalk.com
??? Environment
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2v2
myapp.ap-northeast-2.elasticbeanstalk.com
?? URL? ???? ??????
? Environment? ???
78. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
?????? ????: Blue/Green
? ??:
? ?? ??? ??? ?? ???? ???? ?? ?? ??
? ???? ?? ?? ??
? ??? ?? ??? ??????, ?? ????? ?? X
? ??:
? ??? ?? ???? ?? ?? ?? (5 ?)
? RDS ?? ???? ?? ?? RDS? ?? ?? ?? (???? Clone ? ?)
79. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
??:
Blue/Green Deployment in
ElasticBeanstalk (Using EB Console)
80. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
81. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Application ?? ?? ? ?? ??
* ?? ???? ? ?????/????? ??? Environment? ?? ??? ??
???? ?? ?? ? ?? ??
??
????
??
DNS ??
??
??
????
???
??? ??
All at Once* ???? ?? X O ?? ?? ??
?????
Rolling ?? ??? ?? ??? ??
??. ?? ?? ?? ?????
??? ?? ???? ?????
? ??? ?????? ??
O O ?? ?? ??
?????
Rolling with
additional batch
?? ??? ???? ?? ??
??, ???? Rolling? ???.
O O ?? ?? ??? & ??
?????
Immutable* ?? ?? O O ?? ?? ???
?????
Blue/Green ?? ?? O O URL ??
(swapping)
???
?????
???? ?? ???? ?? ??
82. ? 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk??
?????? ??? ????