SlideShare a Scribd company logo
1 of 57
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use Elastic Beanstalk Blue-Green
Deployments to Reduce Downtime & Risk
Tim Freeman
Software Development Manager
AWS Elastic Beanstalk
D E V 3 3 0
Kam Mahant
Software Development Manager
AWS Elastic Beanstalk
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What the session will cover
• Introduction to AWS Elastic Beanstalk
• Overview of AWS Elastic Beanstalk deployment options
• Focus on Blue-Green deployments
• Q&A
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Running web applications on AWS
AWS has multiple services that enable you to run your application
including:
However, this leaves the selection, provisioning, configuration,
deployment, and management up to you
• EC2, Lambda, ECS, EKS, Lightsail, FargateCompute
• S3, EFSStorage
• CLB, ALB, NLB, Security Groups, VPCNetwork
• RDS, DynamoDB, AuroraDatabase
• Auto Scaling, CloudFormation, Systems ManagerManagement Tools
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Elastic Beanstalk
The easiest way to get your applications up and running in minutes
Elastic Beanstalk is a managed service that automatically handles:
• Infrastructure provisioning
• Deployment
• Load balancing configurations
• Auto scaling configurations
• Network and security configurations
• Application level health monitoring
• Application analysis and debugging tools
There is no additional cost
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Platforms
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deploying to production is hard
• Deployment time
• Downtime
• Reduced capacity
• Deployment failure
• Rollback time
• Cost
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Method Impact of failed deployment
Deploy
time
Zero
downtime
Rollback
process
Code
deployed to
All at Once Downtime  X Re-deploy Existing
instances
Rolling Single batch of instance will be out
of service. Any successfully deployed
instances prior to failure will be
running new application version
  Re-deploy Existing
instances
Rolling with
additional batch
Minimum if first batch of instance
fails, otherwise similar to Rolling
  Re-deploy New &
existing
instances
Immutable Minimal   Terminate
new instances
New
instances
Blue-Green
(Achieved using
two Environments)
Minimal   Swap URL New
instances
Application deployment strategies
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
Deployment Option: All at once
Deployment Scenarios
• Fast rollout
• Downtime tolerant
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Deployment Option: All at once
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V2 V1 V2 V1 V2 V1 V2 V1
Deployment Option: All at once
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V2 V2 V2 V2
Deployment Option: All at once
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment Option: All at once
Advantages
Disadvantages
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment Option: Rolling
Deployment Scenarios
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Deployment Option: Rolling
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V2 V1 V2 V1
Deployment Option: Rolling
V1 V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V2 V2
Deployment Option: Rolling
V1 V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V2 V1 V2 V1
Deployment Option: Rolling
V2V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Deployment Option: Rolling
V2 V2 V2 V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment Option: Rolling
Advantages
Disadvantages
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
Deployment Option: Rolling with additional batch
Deployment Scenarios
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Deployment Option: Rolling with additional batch
V1 V1 V1 V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1V1 V1V2 V2
Deployment Option: Rolling with additional batch
V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V2 V2
Deployment Option: Rolling with additional batch
V1V1 V1 V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V2 V1 V2 V1
Deployment Option: Rolling with additional batch
V2 V2 V1V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Deployment Option: Rolling with additional batch
V2 V2 V1V1V2 V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Deployment Option: Rolling with additional batch
V2 V2 V2 V2 V1V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Deployment Option: Rolling with additional batch
V2 V2 V2 V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment Option: Rolling with additional batch
Advantages
Disadvantages
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
Deployment Option: Immutable
Deployment Scenarios
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Deployment Option: Immutable
V1 V1 V1 V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Temporary Auto Scaling Group
V2
Deployment Option: Immutable
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Temporary Auto Scaling Group
Deployment Option: Immutable
V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Temporary Auto Scaling Group
V2 V2 V2
Deployment Option: Immutable
V2V1 V1 V1 V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Temporary Auto Scaling Group
V2 V2 V2
Deployment Option: Immutable
V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1 V2 V2 V2 V2
Deployment Option: Immutable
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1 V2 V2 V2 V2
Deployment Option: Immutable
Auto Scaling Group
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Auto Scaling Group
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Deployment Option: Immutable
V2 V2 V2 V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deployment Option: Immutable
Advantages
Disadvantages
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
V1 V1 V1 V1
Blue-Green Deployments
Deployment Scenarios
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
V1 V1 V1 V1
Blue-Green Deployments
myapp.us-east-1.elasticbeanstalk.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
V1 V1 V1 V1
myapp.us-east-1.elasticbeanstalk.com
Blue-Green Deployments
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
V1 V1 V1 V1
myapp.us-east-1.elasticbeanstalk.com
Blue-Green Deployments
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1 V1 V1 V1
V1 V1 V1 V1
myapp.us-east-1.elasticbeanstalk.com
Blue-Green Deployments
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Beanstalk Environment
Auto Scaling Group
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Blue-Green Step 1: Clone the active environment
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Beanstalk Environment
Auto Scaling Group
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
V1 V1 V1 V1
Elastic Beanstalk Environment
Auto Scaling Group
Myapp_test.us-east-1.elasticbeanstalk.com
V1 V1 V1
Cloned environment
Blue-Green Step 1: Clone the active environment
V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Beanstalk Environment
Auto Scaling Group
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Elastic Beanstalk Environment
Auto Scaling Group
Myapp_test.us-east-1.elasticbeanstalk.com
Cloned environment
V2 V2 V2
Blue-Green Step 2: Deploy and test changes
V2V1 V1 V1 V1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Beanstalk Environment
Auto Scaling Group
myapp.us-east-1.elasticbeanstalk.com
V1 V1 V1 V1
Elastic Beanstalk Environment
Auto Scaling Group
Myapp_test.us-east-1.elasticbeanstalk.com
Cloned environment
V2 V2 V2V1 V1 V1 V1 V2
Blue-Green Step 3: Swap environment URL
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue-Green Step 3: Swap environment URL
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1
Blue-Green Deployments
Elastic Beanstalk Environment
Auto Scaling Group
myapp.us-east-1.elasticbeanstalk.com
V2 V2 V2 V2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
V1
Blue-Green Deployments
Advantages
Disadvantages
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Method Impact of failed deployment
Deploy
time
Zero
downtime
Rollback
process
Code
deployed to
All at Once Downtime  X Re-deploy Existing
instances
Rolling Single batch of instance will be out
of service. Any successfully deployed
instances prior to failure will be
running new application version
  Re-deploy Existing
instances
Rolling with
additional batch
Minimum if first batch of instance
fails, otherwise similar to Rolling
  Re-deploy New &
existing
instances
Immutable Minimal   Terminate
new instances
New
instances
Blue-Green
(Achieved using
two Environments)
Minimal   Swap URL New
instances
Application deployment strategies
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Beanstalk deployment options
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Additional Resources
https://aws.amazon.com/quickstart/architecture/blue-green-deployment/
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Tim Freeman
Software Development Manager
AWS Elastic Beanstalk
Kam Mahant
Software Development Manager
AWS Elastic Beanstalk
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWSAmazon Web Services
 
20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier
20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier
20190220 AWS Black Belt Online Seminar Amazon S3 / GlacierAmazon Web Services Japan
 
Introducing AWS Elastic Beanstalk
Introducing AWS Elastic BeanstalkIntroducing AWS Elastic Beanstalk
Introducing AWS Elastic BeanstalkAmazon Web Services
 
AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront
AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront
AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront Amazon Web Services Japan
 
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저Amazon Web Services Korea
 
Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Web Services
 
20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したことAmazon Web Services Japan
 
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021Amazon Web Services Korea
 
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic BeanstalkAWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic BeanstalkAmazon Web Services Japan
 
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
[AWS Builders 온라인 시리즈]  AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트[AWS Builders 온라인 시리즈]  AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트Amazon Web Services Korea
 
AWS Control Tower
AWS Control TowerAWS Control Tower
AWS Control TowerCloudHesive
 
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017Amazon Web Services Korea
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesAmazon Web Services
 
Introduction to DevSecOps on AWS
Introduction to DevSecOps on AWSIntroduction to DevSecOps on AWS
Introduction to DevSecOps on AWSAmazon Web Services
 

What's hot (20)

Introduction to DevOps on AWS
Introduction to DevOps on AWSIntroduction to DevOps on AWS
Introduction to DevOps on AWS
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database Services
 
(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS(DVO401) Deep Dive into Blue/Green Deployments on AWS
(DVO401) Deep Dive into Blue/Green Deployments on AWS
 
20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier
20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier
20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier
 
Introducing AWS Elastic Beanstalk
Introducing AWS Elastic BeanstalkIntroducing AWS Elastic Beanstalk
Introducing AWS Elastic Beanstalk
 
AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront
AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront
AWS Black Belt Tech シリーズ 2016 - Amazon CloudFront
 
20191125 Container Security
20191125 Container Security20191125 Container Security
20191125 Container Security
 
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
데이터 마이그레이션 및 전송을 위한 AWS 스토리지 서비스 활용방안 - 박용선, 메가존 클라우드 매니저
 
AWS VPC Fundamentals- Webinar
AWS VPC Fundamentals- WebinarAWS VPC Fundamentals- Webinar
AWS VPC Fundamentals- Webinar
 
Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)
 
20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと
 
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
 
Amazon EC2 Masterclass
Amazon EC2 MasterclassAmazon EC2 Masterclass
Amazon EC2 Masterclass
 
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic BeanstalkAWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
 
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
[AWS Builders 온라인 시리즈]  AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트[AWS Builders 온라인 시리즈]  AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
 
Amazon EMR Masterclass
Amazon EMR MasterclassAmazon EMR Masterclass
Amazon EMR Masterclass
 
AWS Control Tower
AWS Control TowerAWS Control Tower
AWS Control Tower
 
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute Services
 
Introduction to DevSecOps on AWS
Introduction to DevSecOps on AWSIntroduction to DevSecOps on AWS
Introduction to DevSecOps on AWS
 

Similar to Use Elastic Beanstalk Blue/Green Deployment to Reduce Downtime & Risk (DEV330-R1) - AWS re:Invent 2018

Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018
Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018
Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018Amazon Web Services
 
Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...
Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...
Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...Amazon Web Services
 
Keynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practicedKeynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practicedAWS User Group Bengaluru
 
Keynote - Adrian Hornsby on Chaos Engineering
Keynote - Adrian Hornsby on Chaos EngineeringKeynote - Adrian Hornsby on Chaos Engineering
Keynote - Adrian Hornsby on Chaos EngineeringAmazon Web Services
 
Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends Amazon Web Services
 
How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018
How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018
How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018Amazon Web Services
 
Resiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudResiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudAmazon Web Services
 
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...Amazon Web Services
 
Chaos Engineering: Why Breaking Things Should Be Practised.
Chaos Engineering: Why Breaking Things Should Be Practised.Chaos Engineering: Why Breaking Things Should Be Practised.
Chaos Engineering: Why Breaking Things Should Be Practised.Adrian Hornsby
 
Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...
Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...
Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...Amazon Web Services
 
Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...
Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...
Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...Amazon Web Services
 
Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...
Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...
Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...Amazon Web Services
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Amazon Web Services
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...Amazon Web Services
 
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018Amazon Web Services
 
Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...
Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...
Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...Amazon Web Services
 
AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018
AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018
AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018Amazon Web Services Korea
 
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
建構全球跨區域  x Active-Active架構的無伺服器化後台服務建構全球跨區域  x Active-Active架構的無伺服器化後台服務
建構全球跨區域 x Active-Active架構的無伺服器化後台服務Amazon Web Services
 
Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...
Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...
Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...Amazon Web Services
 

Similar to Use Elastic Beanstalk Blue/Green Deployment to Reduce Downtime & Risk (DEV330-R1) - AWS re:Invent 2018 (20)

Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018
Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018
Advanced Continuous Delivery Best Practices (DEV317-R1) - AWS re:Invent 2018
 
Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...
Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...
Best Practices for Building Multi-Region, Active-Active Serverless Applicatio...
 
Chaos Engineering
Chaos EngineeringChaos Engineering
Chaos Engineering
 
Keynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practicedKeynote - Chaos Engineering: Why breaking things should be practiced
Keynote - Chaos Engineering: Why breaking things should be practiced
 
Keynote - Adrian Hornsby on Chaos Engineering
Keynote - Adrian Hornsby on Chaos EngineeringKeynote - Adrian Hornsby on Chaos Engineering
Keynote - Adrian Hornsby on Chaos Engineering
 
Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends
 
How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018
How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018
How AWS Minimizes the Blast Radius of Failures (ARC338) - AWS re:Invent 2018
 
Resiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudResiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the Cloud
 
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
Applying the Twelve-Factor App Methodology to Serverless Applications (SRV218...
 
Chaos Engineering: Why Breaking Things Should Be Practised.
Chaos Engineering: Why Breaking Things Should Be Practised.Chaos Engineering: Why Breaking Things Should Be Practised.
Chaos Engineering: Why Breaking Things Should Be Practised.
 
Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...
Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...
Chaos Engineering: Why Breaking Things Should Be Practiced - AWS Developer Wo...
 
Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...
Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...
Operational Excellence with Containerized Workloads Using AWS Fargate (CON320...
 
Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...
Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...
Netflix: Iterating on Stateful Services in the Cloud (DAT406) - AWS re:Invent...
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
 
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
How to Use Predictive Scaling (API331-R1) - AWS re:Invent 2018
 
Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...
Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...
Breaking Containers: Chaos Engineering for Modern Applications on AWS (CON310...
 
AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018
AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018
AWS 기반 Microservice 운영을 위한 데브옵스 사례와 Spinnaker 소개::김영욱::AWS Summit Seoul 2018
 
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
建構全球跨區域  x Active-Active架構的無伺服器化後台服務建構全球跨區域  x Active-Active架構的無伺服器化後台服務
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
 
Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...
Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...
Amazon CI/CD Practices for Software Development Teams - SRV320 - Chicago AWS ...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Use Elastic Beanstalk Blue/Green Deployment to Reduce Downtime & Risk (DEV330-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use Elastic Beanstalk Blue-Green Deployments to Reduce Downtime & Risk Tim Freeman Software Development Manager AWS Elastic Beanstalk D E V 3 3 0 Kam Mahant Software Development Manager AWS Elastic Beanstalk
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What the session will cover • Introduction to AWS Elastic Beanstalk • Overview of AWS Elastic Beanstalk deployment options • Focus on Blue-Green deployments • Q&A
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Running web applications on AWS AWS has multiple services that enable you to run your application including: However, this leaves the selection, provisioning, configuration, deployment, and management up to you • EC2, Lambda, ECS, EKS, Lightsail, FargateCompute • S3, EFSStorage • CLB, ALB, NLB, Security Groups, VPCNetwork • RDS, DynamoDB, AuroraDatabase • Auto Scaling, CloudFormation, Systems ManagerManagement Tools
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Elastic Beanstalk The easiest way to get your applications up and running in minutes Elastic Beanstalk is a managed service that automatically handles: • Infrastructure provisioning • Deployment • Load balancing configurations • Auto scaling configurations • Network and security configurations • Application level health monitoring • Application analysis and debugging tools There is no additional cost
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Platforms
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deploying to production is hard • Deployment time • Downtime • Reduced capacity • Deployment failure • Rollback time • Cost
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Method Impact of failed deployment Deploy time Zero downtime Rollback process Code deployed to All at Once Downtime  X Re-deploy Existing instances Rolling Single batch of instance will be out of service. Any successfully deployed instances prior to failure will be running new application version   Re-deploy Existing instances Rolling with additional batch Minimum if first batch of instance fails, otherwise similar to Rolling   Re-deploy New & existing instances Immutable Minimal   Terminate new instances New instances Blue-Green (Achieved using two Environments) Minimal   Swap URL New instances Application deployment strategies
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 Deployment Option: All at once Deployment Scenarios • Fast rollout • Downtime tolerant
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Deployment Option: All at once
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V2 V1 V2 V1 V2 V1 V2 V1 Deployment Option: All at once
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V2 V2 V2 V2 Deployment Option: All at once
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment Option: All at once Advantages Disadvantages
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment Option: Rolling Deployment Scenarios
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Deployment Option: Rolling
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V2 V1 V2 V1 Deployment Option: Rolling V1 V1
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V2 V2 Deployment Option: Rolling V1 V1
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V2 V1 V2 V1 Deployment Option: Rolling V2V2
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Deployment Option: Rolling V2 V2 V2 V2
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment Option: Rolling Advantages Disadvantages
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 Deployment Option: Rolling with additional batch Deployment Scenarios
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Deployment Option: Rolling with additional batch V1 V1 V1 V1
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1V1 V1V2 V2 Deployment Option: Rolling with additional batch V1
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V2 V2 Deployment Option: Rolling with additional batch V1V1 V1 V1
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V2 V1 V2 V1 Deployment Option: Rolling with additional batch V2 V2 V1V1
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Deployment Option: Rolling with additional batch V2 V2 V1V1V2 V2
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Deployment Option: Rolling with additional batch V2 V2 V2 V2 V1V1
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Deployment Option: Rolling with additional batch V2 V2 V2 V2
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment Option: Rolling with additional batch Advantages Disadvantages
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 Deployment Option: Immutable Deployment Scenarios
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Deployment Option: Immutable V1 V1 V1 V1
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Temporary Auto Scaling Group V2 Deployment Option: Immutable
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Temporary Auto Scaling Group Deployment Option: Immutable V2
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Temporary Auto Scaling Group V2 V2 V2 Deployment Option: Immutable V2V1 V1 V1 V1
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Temporary Auto Scaling Group V2 V2 V2 Deployment Option: Immutable V2
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 V2 V2 V2 V2 Deployment Option: Immutable
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 V2 V2 V2 V2 Deployment Option: Immutable Auto Scaling Group
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Auto Scaling Group Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Deployment Option: Immutable V2 V2 V2 V2
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deployment Option: Immutable Advantages Disadvantages
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 V1 V1 V1 V1 Blue-Green Deployments Deployment Scenarios
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 V1 V1 V1 V1 Blue-Green Deployments myapp.us-east-1.elasticbeanstalk.com
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 V1 V1 V1 V1 myapp.us-east-1.elasticbeanstalk.com Blue-Green Deployments
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 V1 V1 V1 V1 myapp.us-east-1.elasticbeanstalk.com Blue-Green Deployments
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 V1 V1 V1 V1 V1 V1 V1 myapp.us-east-1.elasticbeanstalk.com Blue-Green Deployments
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Beanstalk Environment Auto Scaling Group myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Blue-Green Step 1: Clone the active environment
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Beanstalk Environment Auto Scaling Group myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 V1 V1 V1 V1 Elastic Beanstalk Environment Auto Scaling Group Myapp_test.us-east-1.elasticbeanstalk.com V1 V1 V1 Cloned environment Blue-Green Step 1: Clone the active environment V1
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Beanstalk Environment Auto Scaling Group myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Elastic Beanstalk Environment Auto Scaling Group Myapp_test.us-east-1.elasticbeanstalk.com Cloned environment V2 V2 V2 Blue-Green Step 2: Deploy and test changes V2V1 V1 V1 V1
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Beanstalk Environment Auto Scaling Group myapp.us-east-1.elasticbeanstalk.com V1 V1 V1 V1 Elastic Beanstalk Environment Auto Scaling Group Myapp_test.us-east-1.elasticbeanstalk.com Cloned environment V2 V2 V2V1 V1 V1 V1 V2 Blue-Green Step 3: Swap environment URL
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue-Green Step 3: Swap environment URL
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 Blue-Green Deployments Elastic Beanstalk Environment Auto Scaling Group myapp.us-east-1.elasticbeanstalk.com V2 V2 V2 V2
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. V1 Blue-Green Deployments Advantages Disadvantages
  • 52. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Method Impact of failed deployment Deploy time Zero downtime Rollback process Code deployed to All at Once Downtime  X Re-deploy Existing instances Rolling Single batch of instance will be out of service. Any successfully deployed instances prior to failure will be running new application version   Re-deploy Existing instances Rolling with additional batch Minimum if first batch of instance fails, otherwise similar to Rolling   Re-deploy New & existing instances Immutable Minimal   Terminate new instances New instances Blue-Green (Achieved using two Environments) Minimal   Swap URL New instances Application deployment strategies
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Beanstalk deployment options
  • 54. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Additional Resources https://aws.amazon.com/quickstart/architecture/blue-green-deployment/ https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html
  • 55. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 56. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Tim Freeman Software Development Manager AWS Elastic Beanstalk Kam Mahant Software Development Manager AWS Elastic Beanstalk
  • 57. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.