Continuous Delivery on AWS with Zero Downtime

Casey Lee
Casey LeeDevOps Engineer at Stelligent
SUMMIT
SANTA CLARA
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Continuous Delivery on AWS
with Zero Downtime
Casey Lee
AWS Container Hero
DEV10
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Casey Lee
AWS Container Hero
Director of Engineering
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Agenda
● Principles of Continuous Delivery
● Tools of Continuous Delivery
● Demo
SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Principles of
Continuous Delivery
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
https://www.slideshare.net/AmazonWebServices/devops-at-amazon-a-look-at-our-tools-and-processes-50364582
ReleaseTestBuild
Plan Monitor
Delivery Pipeline
Feedback Loop
Software Development Lifecycle
CustomersDevelopers
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Continuous
Every change triggers the feedback process
“If it hurts, do it more often!”
- Martin Fowler
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Automation
Releasing software should be repeatable and reliable
“Deployments ought to be a boring,
push-button experience”
- Jez Humble
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Quality
Build it into the product
“Cease dependence on mass inspection to
achieve quality. Improve the process and build
quality into the product in the first place”
-W. Edwards Deming
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
● Continuous - Every change triggers the feedback process
● Automation - Releasing software should be repeatable and reliable
● Quality- Build it into the product
Principles of Continuous Delivery
SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Tools of
Continuous Delivery
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Overview
● CodePipeline - orchestrate all the automation
● CodeBuild - create deployable artifact from source
● CodeDeploy - deploy and release artifact
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodePipeline
● Revision - a change made to the
source for the pipeline
● Stage - group of actions run for a
single revision at a time
● Action - task to be performed for a
stage
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
RegionCodePipeline
AWS
CodePipeline
Source Build Deploy
AWS
CodeBuild
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
RegionCodeBuild
AWS
CodePipeline
Source Build Deploy
AWS
CodeBuild
AWS
CodeDeploy
Amazon EC2
Container Registry
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
RegionCodeDeploy
AWS
CodePipeline
Source Build Deploy
AWS
CodeBuild
AWS
CodeDeploy
Amazon EC2
Container Registry
Amazon Elastic
Container Service
Application
Load Balancer
Amazon
CloudWatch
AWS Lambda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodeDeploy - Steady State
AWS
CodeDeploy
Target group 1
Amazon Elastic
Container Service
Blue tasks:
v1 codeProduction
traffic listener
(port 80)
Application
Load Balancer
Target group 2Test
traffic listener
(port 8080
100%
prod traffic
https://www.youtube.com/watch?v=5VPIzKDyLvo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodeDeploy - Green Task Deployment
AWS
CodeDeploy
Target group 1
Amazon Elastic
Container Service
Blue tasks:
v1 codeProduction
traffic listener
(port 80)
Application
Load Balancer
Target group 2Test
traffic listener
(port 8080
100%
prod traffic
https://www.youtube.com/watch?v=5VPIzKDyLvo
Green tasks:
v2 code
100%
test traffic
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodeDeploy - Smoke Test Green Deployment
AWS
CodeDeploy
Target group 1
Amazon Elastic
Container Service
Blue tasks:
v1 codeProduction
traffic listener
(port 80)
Application
Load Balancer
Target group 2Test
traffic listener
(port 8080
100%
prod traffic
https://www.youtube.com/watch?v=5VPIzKDyLvo
Green tasks:
v2 code
100%
test traffic
AWS Lambda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodeDeploy - Blue/Green Switch
AWS
CodeDeploy
Target group 1
Amazon Elastic
Container Service
Blue tasks:
v1 codeProduction
traffic listener
(port 80)
Application
Load Balancer
Target group 2Test
traffic listener
(port 8080
0%
prod traffic
https://www.youtube.com/watch?v=5VPIzKDyLvo
Green tasks:
v2 code
100%
test traffic
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodeDeploy - Monitor
AWS
CodeDeploy
Target group 1
Amazon Elastic
Container Service
Production
traffic listener
(port 80)
Blue tasks:
v1 code
Application
Load Balancer
Target group 2Test
traffic listener
(port 8080
0%
prod traffic
https://www.youtube.com/watch?v=5VPIzKDyLvo
Green tasks:
v2 code
100%
test traffic
Amazon
CloudWatch
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodeDeploy - Terminate v1
AWS
CodeDeploy
Target group 1
Amazon Elastic
Container Service
Production
traffic listener
(port 80)
Application
Load Balancer
Target group 2Test
traffic listener
(port 8080
https://www.youtube.com/watch?v=5VPIzKDyLvo
Green tasks:
v2 code
100%
test traffic
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
RegionSummary
AWS
CodePipeline
Source Build Deploy
AWS
CodeBuild
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
RegionSummary
AWS
CodePipeline
Source Build Deploy
AWS
CodeBuild
AWS
CodeDeploy
pre-deploy post-deployQUALITY
AUTOMATIONCONTINUOUS
SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Demo App
bootcamp.liatr.io
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Architecture
bootcamp.liatr.io Availability zone 2Availability zone 1
AWS Region
VPC
Private subnet
ECS Service Auto Scaling
Private subnet
ECS
Container
Amazon EC2
Container
Registry
Application
Load Balancer
ECS
Container
AWS Fargate
Amazon Elastic
Container Service
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Pipeline
bootcamp.liatr.io
Region
AWS
CodePipeline
Amazon EC2
Container Registry
Amazon Elastic
Container Service
Source Build Deploy
AWS
CodeBuild
AWS
CodeDeploy
Application
Load Balancer
Amazon
CloudWatch
AWS Lambda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeBuild
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeBuild
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
AWS
Lambda
+
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
FAIL Clip
2.2 code deploy traffic shift to wait
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
+
Amazon
CloudWatch
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
+
Amazon
CloudWatch
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
+
Amazon
CloudWatch
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Summary
● Principles of Continuous Delivery
● Tools of Continuous Delivery
● Demo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
Thank you!
SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Casey Lee
nektos
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMITSUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please complete the
session survey.
!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
CodePipeline Action
Category
Valid Action Providers
Source Amazon S3
CodeCommit
GitHub
Amazon ECR
Build CodeBuild
CloudBees
Jenkins
TeamCity
Test CodeBuild
AWS Device Farm
BlazeMeter
GhostInspector
Jenkins
Action
Category
Valid Action Providers
Deploy Amazon S3
AWS CloudFormation
CodeDeploy
Amazon ECS
Elastic Beanstalk
AWS OpsWorks
AWS Service Catalog
Amazon Alexa
XebiaLabs
Approval Manual
Invoke AWS Lambda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodePipeline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
AWS
CodeDeploy
1 of 59

Recommended

2022 SF Summit - Improving Developer Experience with CDK by
2022 SF Summit - Improving Developer Experience with CDK2022 SF Summit - Improving Developer Experience with CDK
2022 SF Summit - Improving Developer Experience with CDKCasey Lee
91 views30 slides
AWS Summit DC 2021: Improve the developer experience with AWS CDK by
AWS Summit DC 2021: Improve the developer experience with AWS CDKAWS Summit DC 2021: Improve the developer experience with AWS CDK
AWS Summit DC 2021: Improve the developer experience with AWS CDKCasey Lee
193 views66 slides
The Last Bottleneck of Continuous Delivery by
The Last Bottleneck of Continuous DeliveryThe Last Bottleneck of Continuous Delivery
The Last Bottleneck of Continuous DeliveryCasey Lee
142 views25 slides
Using AWS to Achieve Both Autonomy and Governance at 3M by
Using AWS to Achieve Both Autonomy and Governance at 3MUsing AWS to Achieve Both Autonomy and Governance at 3M
Using AWS to Achieve Both Autonomy and Governance at 3MCasey Lee
101 views55 slides
AWS DOs and DONTs by
AWS DOs and DONTsAWS DOs and DONTs
AWS DOs and DONTsCasey Lee
108 views37 slides
AWS re:Invent 2018 by
AWS re:Invent 2018 AWS re:Invent 2018
AWS re:Invent 2018 Casey Lee
57 views44 slides

More Related Content

Recently uploaded

Agile 101 by
Agile 101Agile 101
Agile 101John Valentino
13 views20 slides
Supercharging your Python Development Environment with VS Code and Dev Contai... by
Supercharging your Python Development Environment with VS Code and Dev Contai...Supercharging your Python Development Environment with VS Code and Dev Contai...
Supercharging your Python Development Environment with VS Code and Dev Contai...Dawn Wages
5 views51 slides
EV Charging App Case by
EV Charging App Case EV Charging App Case
EV Charging App Case iCoderz Solutions
10 views1 slide
Chat GPTs by
Chat GPTsChat GPTs
Chat GPTsGene Leybzon
13 views36 slides
Quality Assurance by
Quality Assurance Quality Assurance
Quality Assurance interworksoftware2
8 views6 slides
Playwright Retries by
Playwright RetriesPlaywright Retries
Playwright Retriesartembondar5
7 views1 slide

Recently uploaded(20)

Supercharging your Python Development Environment with VS Code and Dev Contai... by Dawn Wages
Supercharging your Python Development Environment with VS Code and Dev Contai...Supercharging your Python Development Environment with VS Code and Dev Contai...
Supercharging your Python Development Environment with VS Code and Dev Contai...
Dawn Wages5 views
JioEngage_Presentation.pptx by admin125455
JioEngage_Presentation.pptxJioEngage_Presentation.pptx
JioEngage_Presentation.pptx
admin1254559 views
Top-5-production-devconMunich-2023-v2.pptx by Tier1 app
Top-5-production-devconMunich-2023-v2.pptxTop-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptx
Tier1 app9 views
predicting-m3-devopsconMunich-2023-v2.pptx by Tier1 app
predicting-m3-devopsconMunich-2023-v2.pptxpredicting-m3-devopsconMunich-2023-v2.pptx
predicting-m3-devopsconMunich-2023-v2.pptx
Tier1 app14 views
ADDO_2022_CICID_Tom_Halpin.pdf by TomHalpin9
ADDO_2022_CICID_Tom_Halpin.pdfADDO_2022_CICID_Tom_Halpin.pdf
ADDO_2022_CICID_Tom_Halpin.pdf
TomHalpin96 views
Advanced API Mocking Techniques Using Wiremock by Dimpy Adhikary
Advanced API Mocking Techniques Using WiremockAdvanced API Mocking Techniques Using Wiremock
Advanced API Mocking Techniques Using Wiremock
Dimpy Adhikary5 views
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P... by NimaTorabi2
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...
NimaTorabi217 views

Featured

ChatGPT and the Future of Work - Clark Boyd by
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
28.7K views69 slides
Getting into the tech field. what next by
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
6.7K views22 slides
Google's Just Not That Into You: Understanding Core Updates & Search Intent by
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
7K views99 slides
How to have difficult conversations by
How to have difficult conversations How to have difficult conversations
How to have difficult conversations Rajiv Jayarajah, MAppComm, ACC
5.7K views19 slides
Introduction to Data Science by
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
82.6K views51 slides
Time Management & Productivity - Best Practices by
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
169.8K views42 slides

Featured(20)

ChatGPT and the Future of Work - Clark Boyd by Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd28.7K views
Getting into the tech field. what next by Tessa Mero
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero6.7K views
Google's Just Not That Into You: Understanding Core Updates & Search Intent by Lily Ray
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray7K views
Time Management & Productivity - Best Practices by Vit Horky
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky169.8K views
The six step guide to practical project management by MindGenius
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius36.7K views
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by RachelPearson36
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson3612.8K views
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools55.5K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter401.7K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software25.3K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn8.5K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software88.4K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
Weekdone.com7.2K views
How to Map Your Future by SlideShop.com
How to Map Your FutureHow to Map Your Future
How to Map Your Future
SlideShop.com275.1K views

Continuous Delivery on AWS with Zero Downtime

  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Continuous Delivery on AWS with Zero Downtime Casey Lee AWS Container Hero DEV10
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Casey Lee AWS Container Hero Director of Engineering
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Agenda ● Principles of Continuous Delivery ● Tools of Continuous Delivery ● Demo
  • 5. SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Principles of Continuous Delivery
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT https://www.slideshare.net/AmazonWebServices/devops-at-amazon-a-look-at-our-tools-and-processes-50364582 ReleaseTestBuild Plan Monitor Delivery Pipeline Feedback Loop Software Development Lifecycle CustomersDevelopers
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Continuous Every change triggers the feedback process “If it hurts, do it more often!” - Martin Fowler
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Automation Releasing software should be repeatable and reliable “Deployments ought to be a boring, push-button experience” - Jez Humble
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Quality Build it into the product “Cease dependence on mass inspection to achieve quality. Improve the process and build quality into the product in the first place” -W. Edwards Deming
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT ● Continuous - Every change triggers the feedback process ● Automation - Releasing software should be repeatable and reliable ● Quality- Build it into the product Principles of Continuous Delivery
  • 11. SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Tools of Continuous Delivery
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Overview ● CodePipeline - orchestrate all the automation ● CodeBuild - create deployable artifact from source ● CodeDeploy - deploy and release artifact
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodePipeline ● Revision - a change made to the source for the pipeline ● Stage - group of actions run for a single revision at a time ● Action - task to be performed for a stage
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT RegionCodePipeline AWS CodePipeline Source Build Deploy AWS CodeBuild AWS CodeDeploy
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT RegionCodeBuild AWS CodePipeline Source Build Deploy AWS CodeBuild AWS CodeDeploy Amazon EC2 Container Registry
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT RegionCodeDeploy AWS CodePipeline Source Build Deploy AWS CodeBuild AWS CodeDeploy Amazon EC2 Container Registry Amazon Elastic Container Service Application Load Balancer Amazon CloudWatch AWS Lambda
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodeDeploy - Steady State AWS CodeDeploy Target group 1 Amazon Elastic Container Service Blue tasks: v1 codeProduction traffic listener (port 80) Application Load Balancer Target group 2Test traffic listener (port 8080 100% prod traffic https://www.youtube.com/watch?v=5VPIzKDyLvo
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodeDeploy - Green Task Deployment AWS CodeDeploy Target group 1 Amazon Elastic Container Service Blue tasks: v1 codeProduction traffic listener (port 80) Application Load Balancer Target group 2Test traffic listener (port 8080 100% prod traffic https://www.youtube.com/watch?v=5VPIzKDyLvo Green tasks: v2 code 100% test traffic
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodeDeploy - Smoke Test Green Deployment AWS CodeDeploy Target group 1 Amazon Elastic Container Service Blue tasks: v1 codeProduction traffic listener (port 80) Application Load Balancer Target group 2Test traffic listener (port 8080 100% prod traffic https://www.youtube.com/watch?v=5VPIzKDyLvo Green tasks: v2 code 100% test traffic AWS Lambda
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodeDeploy - Blue/Green Switch AWS CodeDeploy Target group 1 Amazon Elastic Container Service Blue tasks: v1 codeProduction traffic listener (port 80) Application Load Balancer Target group 2Test traffic listener (port 8080 0% prod traffic https://www.youtube.com/watch?v=5VPIzKDyLvo Green tasks: v2 code 100% test traffic
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodeDeploy - Monitor AWS CodeDeploy Target group 1 Amazon Elastic Container Service Production traffic listener (port 80) Blue tasks: v1 code Application Load Balancer Target group 2Test traffic listener (port 8080 0% prod traffic https://www.youtube.com/watch?v=5VPIzKDyLvo Green tasks: v2 code 100% test traffic Amazon CloudWatch
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodeDeploy - Terminate v1 AWS CodeDeploy Target group 1 Amazon Elastic Container Service Production traffic listener (port 80) Application Load Balancer Target group 2Test traffic listener (port 8080 https://www.youtube.com/watch?v=5VPIzKDyLvo Green tasks: v2 code 100% test traffic
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT RegionSummary AWS CodePipeline Source Build Deploy AWS CodeBuild AWS CodeDeploy
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT RegionSummary AWS CodePipeline Source Build Deploy AWS CodeBuild AWS CodeDeploy pre-deploy post-deployQUALITY AUTOMATIONCONTINUOUS
  • 25. SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Demo App bootcamp.liatr.io
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
  • 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Architecture bootcamp.liatr.io Availability zone 2Availability zone 1 AWS Region VPC Private subnet ECS Service Auto Scaling Private subnet ECS Container Amazon EC2 Container Registry Application Load Balancer ECS Container AWS Fargate Amazon Elastic Container Service
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Pipeline bootcamp.liatr.io Region AWS CodePipeline Amazon EC2 Container Registry Amazon Elastic Container Service Source Build Deploy AWS CodeBuild AWS CodeDeploy Application Load Balancer Amazon CloudWatch AWS Lambda
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeBuild
  • 35. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeBuild
  • 36. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy
  • 38. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy AWS Lambda +
  • 39. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy FAIL Clip 2.2 code deploy traffic shift to wait
  • 40. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy + Amazon CloudWatch
  • 41. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy
  • 42. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy + Amazon CloudWatch
  • 43. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 44. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT
  • 45. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 46. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy
  • 47. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy + Amazon CloudWatch
  • 48. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy
  • 49. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 50. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Summary ● Principles of Continuous Delivery ● Tools of Continuous Delivery ● Demo
  • 51. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT Thank you! SUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Casey Lee nektos
  • 52. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMITSUMMIT © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Please complete the session survey. !
  • 53. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT CodePipeline Action Category Valid Action Providers Source Amazon S3 CodeCommit GitHub Amazon ECR Build CodeBuild CloudBees Jenkins TeamCity Test CodeBuild AWS Device Farm BlazeMeter GhostInspector Jenkins Action Category Valid Action Providers Deploy Amazon S3 AWS CloudFormation CodeDeploy Amazon ECS Elastic Beanstalk AWS OpsWorks AWS Service Catalog Amazon Alexa XebiaLabs Approval Manual Invoke AWS Lambda
  • 54. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 55. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 56. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodePipeline
  • 57. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy
  • 58. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy
  • 59. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.SUMMIT AWS CodeDeploy