SlideShare a Scribd company logo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
K Y I V
11.05.2019
CI/CD for Modern Applications
Massimo Re Ferrè
Developer Advocate
Amazon Web Services
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Who Am I ?
Amazon Web Services (Developer Advocate)
VMware (Solutions Architect and Technical Product Manager)
IBM (Professional Services and Solutions Architect)
Developer (many kilos ago)
Email: mreferre@amazon.com
Twitter: @mreferre
Github: github.com/mreferre
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How software value gets created (in the old model)
Monolithic
application
“Time to user”: months / years
Very heavy
manual
integrations
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How software value gets created (in the new model)
“Time to user”: hours / days
Small
independent
components…
End-to-end
(hands off)
automation
…. with
different
release cycles
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What are the compute options to run my code?
Instances
Containers
Lambda
Containers control plane
Containers data plane
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS compute abstractions layers
AWS
Lambda
Amazon
EC2
Metal
AWS
Fargate
Amazon
EKS
physicalseverVMcontainerfunction
Levelofabstraction
Provider space
(managed by AWS)
Consumer space
(managed by the customer)
Amazon
ECS
For this session, we are going to focus on this (as an example)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ECS w/ EC2 data plane
AWS Account Cust Account
VPC
Amazon EC2
TaskService
ENI
aws ecs run-task … --launch-type EC2 …
You have to manage this
capacity (e.g. with ASGs)
Amazon ECS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scaling metrics
https://garbe.io/blog/2017/04/12/a-better-solution-to-ecs-autoscaling/
https://medium.com/thron-tech/aws-ecs-host-auto-scaling-with-custom-cloudwatch-metrics-and-aws-lambda-b9a9f55faf1d
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Need for speed – (all lines are made up)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Need for speed – real example (all lines are for real)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ECS w/ FARGATE data plane
AWS Account
AWS Fargate
Cust Account
VPC
TaskService
ENI
aws ecs run-task … --launch-type FARGATE …
You don’t have to manage
capacity
Amazon ECS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green and the pressure on infrastructure
Task
Auto Scaling group
Instance
Task Task Task Task Task Task Task Task Task Task Task
Instance Instance Instance
Task Task Task Task Task Task Task Task Task Task Task Task
AWS Fargate
On ECS/EC2 On ECS/Fargate
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green and the pressure on infrastructure
Task
Auto Scaling group
Instance
Task Task Task Task Task Task Task Task Task Task Task
Task Task Task Task Task Task Task Task Task Task Task Task
Instance Instance Instance
Task Task Task Task Task Task Task Task Task Task Task Task
Task Task Task Task Task Task Task Task Task Task Task Task
AWS Fargate
On ECS/EC2 On ECS/Fargate
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green and the pressure on infrastructure
Task
Auto Scaling group
Instance
Task Task Task Task Task Task Task Task Task Task Task
Task Task Task Task Task Task Task Task Task Task Task Task
Instance Instance Instance
Task Task Task Task Task Task Task Task Task Task Task Task
Task Task Task Task Task Task Task Task Task Task Task Task
AWS Fargate
Instance Instance Instance Instance
On ECS/EC2 On ECS/Fargate
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green and the pressure on infrastructure
Auto Scaling group
Instance Instance Instance Instance
AWS Fargate
Instance Instance Instance Instance
Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task
On ECS/EC2 On ECS/Fargate
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green and the pressure on infrastructure
AWS Fargate
Auto Scaling group
Instance Instance Instance Instance
Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task
On ECS/EC2 On ECS/Fargate
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green deployments
Service
Target-Group-Green Task Task Task
Service
Amazon ECR
Amazon ECS
Amazon ALB
Image1
THIS IS VER1
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green deployments
Service
Target-Group-Green
Target-Group-Blue
Task Task Task
Service
Amazon ECR
Amazon ECS
Amazon ALB
Image1
THIS IS VER1
THIS IS VER1
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green deployments
Service
Target-Group-Green
Target-Group-Blue
Task Task Task
Service
AWS CodeCommit AWS CodeBuild
AWS CodePipeline
AWS CodeDeploy Amazon ECR
Amazon ECS
Amazon ALB
Image1
THIS IS VER1
THIS IS VER1
<html>
<body>
<h1>THIS IS VER 1</h1>
</body>
</html>
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green deployments
Service
Target-Group-Green
Target-Group-Blue
Task Task Task
Service
AWS CodeCommit AWS CodeBuild
AWS CodePipeline
AWS CodeDeploy Amazon ECR
Amazon ECS
<html>
<body>
<h1>THIS IS VER 1</h1>
</body>
</html>
<html>
<body>
<h1>THIS IS A NEW VER</h1>
</body>
</html>
Amazon ALB
Image1
Image2
THIS IS VER1
THIS IS VER1
Trigger
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green deployments
Service
Target-Group-Green
Target-Group-Blue
Task Task Task
Service
AWS CodeCommit AWS CodeBuild
AWS CodePipeline
AWS CodeDeploy Amazon ECR
Amazon ECS
Amazon ALB
Image1
Image2
Task Task TaskTHIS IS A NEW VER
THIS IS VER1
<html>
<body>
<h1>THIS IS A NEW VER</h1>
</body>
</html>
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green deployments
Service
Target-Group-Green
Target-Group-Blue Service
AWS CodeCommit AWS CodeBuild
AWS CodePipeline
AWS CodeDeploy Amazon ECR
Amazon ECS
Amazon ALB
Image1
Image2
Task Task TaskTHIS IS A NEW VER
THIS IS A NEW VER
<html>
<body>
<h1>THIS IS A NEW VER</h1>
</body>
</html>
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo?

More Related Content

PDF
AWS Summit Stockholm - Fargate: deploy containers, not infrastructure
PDF
India cloudsummit Bangalore - Advanced Container Use-cases on AWS Container S...
PDF
Serverless days Stockholm - How to build a full-stack airline ticketing web app
PPTX
AWS Canberra User Group - September 2019 Intro
PPTX
2019-11-09 DevOpsNG - What I've learned from DevOps
PDF
e커머스 통합운영 자동화 사례 및 보안강화 방안 - 양수연 상무, 삼성SDS / 임선진 팀장, 삼성SDS :: AWS Summit Seou...
PPTX
Amazon and Region Build Engineering
PDF
Well-Architected フレームワーク概要
AWS Summit Stockholm - Fargate: deploy containers, not infrastructure
India cloudsummit Bangalore - Advanced Container Use-cases on AWS Container S...
Serverless days Stockholm - How to build a full-stack airline ticketing web app
AWS Canberra User Group - September 2019 Intro
2019-11-09 DevOpsNG - What I've learned from DevOps
e커머스 통합운영 자동화 사례 및 보안강화 방안 - 양수연 상무, 삼성SDS / 임선진 팀장, 삼성SDS :: AWS Summit Seou...
Amazon and Region Build Engineering
Well-Architected フレームワーク概要

Similar to From 0 to Blue-Green deployments on AWS Fargate (14)

PDF
Breaking the monolith (an example)
PPTX
AWS Summit London 2019 - Containers on AWS
PDF
Container, Container, Container -유재석 (AWS 솔루션즈 아키텍트)
PDF
"Resiliency and Availability Design Patterns for the Cloud", Sebastien Storma...
PDF
20190318 Amazon EC2 スポットインスタンス再入門
PDF
Budget management with Cloud Economics | AWS Summit Tel Aviv 2019
PDF
Amazon Web Services User Group Sydney - February 2018
PDF
How AWS builds Serverless services using Serverless
PDF
Continuous Delivery on AWS with Zero Downtime
PDF
GraphQL backend with AWS AppSync & AWS Lambda
PPTX
DevConZM - Modern Applications Development in the Cloud
PDF
Well Archictecture Framework dotNET.pdf
PDF
Simplify your Web & Mobile applications with cloud-based serverless backends
PDF
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
Breaking the monolith (an example)
AWS Summit London 2019 - Containers on AWS
Container, Container, Container -유재석 (AWS 솔루션즈 아키텍트)
"Resiliency and Availability Design Patterns for the Cloud", Sebastien Storma...
20190318 Amazon EC2 スポットインスタンス再入門
Budget management with Cloud Economics | AWS Summit Tel Aviv 2019
Amazon Web Services User Group Sydney - February 2018
How AWS builds Serverless services using Serverless
Continuous Delivery on AWS with Zero Downtime
GraphQL backend with AWS AppSync & AWS Lambda
DevConZM - Modern Applications Development in the Cloud
Well Archictecture Framework dotNET.pdf
Simplify your Web & Mobile applications with cloud-based serverless backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
Ad

More from Massimo Ferre' (11)

PDF
Generative AI for the rest of us
PDF
IDI_2023_MRF-Final.pdf
PDF
Web Assembly (on the server)
PDF
IDI 2022: Making sense of the '17 ways to run containers on AWS'
PDF
Codemotion 2020 - Containers Meet Serverless
PDF
ContainerDay 2020 - Using Docker as a frontend for Amazon ECS and AWS Fargate
PDF
IDI 2020 - Containers Meet Serverless
PDF
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020
PPTX
Meetup CNCF Torino - Amazon EKS March 29th 2019
PPTX
End-to-end CI/CD deployments of containerized applications using AWS services
PPTX
Containers at AWS: State of the Union
Generative AI for the rest of us
IDI_2023_MRF-Final.pdf
Web Assembly (on the server)
IDI 2022: Making sense of the '17 ways to run containers on AWS'
Codemotion 2020 - Containers Meet Serverless
ContainerDay 2020 - Using Docker as a frontend for Amazon ECS and AWS Fargate
IDI 2020 - Containers Meet Serverless
Containers Meetup (AWS+CNCF) Milano Jan 15th 2020
Meetup CNCF Torino - Amazon EKS March 29th 2019
End-to-end CI/CD deployments of containerized applications using AWS services
Containers at AWS: State of the Union
Ad

Recently uploaded (20)

PDF
A review of recent deep learning applications in wood surface defect identifi...
PPTX
The various Industrial Revolutions .pptx
PPTX
Modernising the Digital Integration Hub
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PPTX
Tartificialntelligence_presentation.pptx
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
Chapter 5: Probability Theory and Statistics
DOCX
search engine optimization ppt fir known well about this
PDF
Hybrid model detection and classification of lung cancer
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
STKI Israel Market Study 2025 version august
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
A review of recent deep learning applications in wood surface defect identifi...
The various Industrial Revolutions .pptx
Modernising the Digital Integration Hub
A novel scalable deep ensemble learning framework for big data classification...
Zenith AI: Advanced Artificial Intelligence
Web Crawler for Trend Tracking Gen Z Insights.pptx
Tartificialntelligence_presentation.pptx
sustainability-14-14877-v2.pddhzftheheeeee
Enhancing emotion recognition model for a student engagement use case through...
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
Chapter 5: Probability Theory and Statistics
search engine optimization ppt fir known well about this
Hybrid model detection and classification of lung cancer
Final SEM Unit 1 for mit wpu at pune .pptx
CloudStack 4.21: First Look Webinar slides
Assigned Numbers - 2025 - Bluetooth® Document
STKI Israel Market Study 2025 version august
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor

From 0 to Blue-Green deployments on AWS Fargate

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. K Y I V 11.05.2019 CI/CD for Modern Applications Massimo Re Ferrè Developer Advocate Amazon Web Services
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Who Am I ? Amazon Web Services (Developer Advocate) VMware (Solutions Architect and Technical Product Manager) IBM (Professional Services and Solutions Architect) Developer (many kilos ago) Email: mreferre@amazon.com Twitter: @mreferre Github: github.com/mreferre
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. How software value gets created (in the old model) Monolithic application “Time to user”: months / years Very heavy manual integrations
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. How software value gets created (in the new model) “Time to user”: hours / days Small independent components… End-to-end (hands off) automation …. with different release cycles
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. What are the compute options to run my code? Instances Containers Lambda Containers control plane Containers data plane
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS compute abstractions layers AWS Lambda Amazon EC2 Metal AWS Fargate Amazon EKS physicalseverVMcontainerfunction Levelofabstraction Provider space (managed by AWS) Consumer space (managed by the customer) Amazon ECS For this session, we are going to focus on this (as an example)
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ECS w/ EC2 data plane AWS Account Cust Account VPC Amazon EC2 TaskService ENI aws ecs run-task … --launch-type EC2 … You have to manage this capacity (e.g. with ASGs) Amazon ECS
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scaling metrics https://garbe.io/blog/2017/04/12/a-better-solution-to-ecs-autoscaling/ https://medium.com/thron-tech/aws-ecs-host-auto-scaling-with-custom-cloudwatch-metrics-and-aws-lambda-b9a9f55faf1d
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Need for speed – (all lines are made up)
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Need for speed – real example (all lines are for real)
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ECS w/ FARGATE data plane AWS Account AWS Fargate Cust Account VPC TaskService ENI aws ecs run-task … --launch-type FARGATE … You don’t have to manage capacity Amazon ECS
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green and the pressure on infrastructure Task Auto Scaling group Instance Task Task Task Task Task Task Task Task Task Task Task Instance Instance Instance Task Task Task Task Task Task Task Task Task Task Task Task AWS Fargate On ECS/EC2 On ECS/Fargate
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green and the pressure on infrastructure Task Auto Scaling group Instance Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Instance Instance Instance Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task AWS Fargate On ECS/EC2 On ECS/Fargate
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green and the pressure on infrastructure Task Auto Scaling group Instance Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Instance Instance Instance Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task AWS Fargate Instance Instance Instance Instance On ECS/EC2 On ECS/Fargate
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green and the pressure on infrastructure Auto Scaling group Instance Instance Instance Instance AWS Fargate Instance Instance Instance Instance Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task On ECS/EC2 On ECS/Fargate
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green and the pressure on infrastructure AWS Fargate Auto Scaling group Instance Instance Instance Instance Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task Task On ECS/EC2 On ECS/Fargate
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green deployments Service Target-Group-Green Task Task Task Service Amazon ECR Amazon ECS Amazon ALB Image1 THIS IS VER1
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green deployments Service Target-Group-Green Target-Group-Blue Task Task Task Service Amazon ECR Amazon ECS Amazon ALB Image1 THIS IS VER1 THIS IS VER1
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green deployments Service Target-Group-Green Target-Group-Blue Task Task Task Service AWS CodeCommit AWS CodeBuild AWS CodePipeline AWS CodeDeploy Amazon ECR Amazon ECS Amazon ALB Image1 THIS IS VER1 THIS IS VER1 <html> <body> <h1>THIS IS VER 1</h1> </body> </html>
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green deployments Service Target-Group-Green Target-Group-Blue Task Task Task Service AWS CodeCommit AWS CodeBuild AWS CodePipeline AWS CodeDeploy Amazon ECR Amazon ECS <html> <body> <h1>THIS IS VER 1</h1> </body> </html> <html> <body> <h1>THIS IS A NEW VER</h1> </body> </html> Amazon ALB Image1 Image2 THIS IS VER1 THIS IS VER1 Trigger
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green deployments Service Target-Group-Green Target-Group-Blue Task Task Task Service AWS CodeCommit AWS CodeBuild AWS CodePipeline AWS CodeDeploy Amazon ECR Amazon ECS Amazon ALB Image1 Image2 Task Task TaskTHIS IS A NEW VER THIS IS VER1 <html> <body> <h1>THIS IS A NEW VER</h1> </body> </html>
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green deployments Service Target-Group-Green Target-Group-Blue Service AWS CodeCommit AWS CodeBuild AWS CodePipeline AWS CodeDeploy Amazon ECR Amazon ECS Amazon ALB Image1 Image2 Task Task TaskTHIS IS A NEW VER THIS IS A NEW VER <html> <body> <h1>THIS IS A NEW VER</h1> </body> </html>
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo?