SlideShare une entreprise Scribd logo
1  sur  59
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Jeff Hoffman | Director, Software Development | AWS Elastic Beanstalk
Adhiraj Singh | Sr. Product Manager | AWS Elastic Beanstalk
November 29, 2016
DEV206
Scaling Your Web Applications with
AWS Elastic Beanstalk
Agenda
• Elastic Beanstalk Introduction
• Elastic Beanstalk vs. DIY
• Getting started with Elastic Beanstalk
• Demo – Sample Application
• Best Practices
• Deployment options
• Managed Updated
• Auto Scaling
• Other tips
Developer challenges
• Complexity of deploying code, provisioning
and managing infrastructure
• Expertise and time needed to manage and
configure servers, databases, load
balancers, firewalls, and networks
• How to automate application scaling
• Lack of consistency across teams
What is Elastic Beanstalk?
AWS Elastic Beanstalk is an easy-to-use service for
deploying, scaling, and managing web applications and
services.
AWS Elastic Beanstalk vs. Do It Yourself
Your code
HTTP Server
Application Server
Language Interpreter
Operating System
Host
Elastic Beanstalk configures each
EC2 instance in your
environment with the components
necessary to run applications for
the selected platform.
Focus on building your
application
Provided by you
Provided and managed by AWS Elastic Beanstalk (EB)
On-instance configuration
AWS Elastic Beanstalk vs. Do It Yourself
• Preconfigured Infrastructure
• Single Instance (Dev, Low Cost)
• Load Balanced, Auto Scaling (Production)
• Web & Worker tiers
• Elastic Beanstalk provisions necessary
infrastructure resources such as the load
balancer, Auto Scaling group, security
groups, database (optional), etc.
• Provides a unique domain name for your
application
(e.g.: youapp.regionx.elasticbeanstalk.com)
Infrastructure stack
Elastic Beanstalk benefits
Fast & simple
to begin
Developer
productivity/agility
Impossible
to outgrow
Complete
resource control
No additional charge to use Elastic Beanstalk.
You pay only for underlying AWS resources (i.e., EC2 instances, S3, etc.)
Common use cases
Websites
API
backends
Mobile
backends
Asynchronous
Workers
How do I get started with Elastic Beanstalk?
Information required to deploy application
01
02
03
04
Region
Stack (container) type
Single Instance
Load Balanced with
Auto ScalingOR
Database (RDS)
Your code
Optional
Supported Platforms
Building blocks
Application
Application Versions ( V1, V2, …,Vx)
Environment
1
Environment
2
Environment
.. n
How to deploy applications
1. Via AWS Management Console
2. Via AWS Toolkit for Eclipse and Visual
Studio IDE
3. Via AWS SDKs and CLI
4. Via EB command line interface
$ eb deploy
Deploy sample application (EB CLI)
Initial application deployment workflow
$ git clone
https://github.com/awslabs/eb-
node-express-sample.git
Download sample application02
$ eb init
Create your Elastic Beanstalk app03
Follow the prompts to configure the
environment
04
05 Create the resources and launch the
application
$ eb create
$ pip install --upgrade awsebcli
Install the AWS Elastic Beanstalk
command line interface (EB CLI)
01
Update sample application (EB CLI)
Update application workflow
Update your code01
$ git add .
$ git commit –m “v2.0”
$ eb deploy
Add & commit code to repository02
Open application once deployment
completes
03
$ eb open
Sample application details
• Application dependency management
• Configuring/customizing an environment using ebextensions
• Choosing a remote source repository: AWS CodeCommit
• Adding additional AWS resources (e.g.: DynamoDB, SNS, SQS etc.)
Demo
Best practices
• Deployment options
• Managed Platform Updates
• Auto Scaling
• Other tips
Deployment options
* Default method ^ ”All at Once” Method used
Environment Type Deployment category Method
All at Once*
Immutable (New)
Disabled*^
Immutable (New)
All at Once
Rolling*
Rolling with additional batch
Immutable
Disabled^
Rolling based on Health*
Rolling based on Time
Immutable
Single Instance
Load Balanced/Auto-Scaled
Application
Platform/Configuration
Application
Platform/Configuration
All at once: step 0
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
All at once: step 1
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v2v2
All at once: step 2
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v2v2
Rolling: step 0
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling: step 1
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling: step 2
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling: step 3
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v2v2
Rolling: step 4
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v2v2
Rolling with additional batch: step 0
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling with additional batch: step 1
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling with additional batch: step 2
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling with additional batch: step 3
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2 v2
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling with additional batch: step 4
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2 v2
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling with additional batch: step 5
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2 v2 v2
myapp.us-east-1.elasticbeanstalk.com
v1v1
Rolling with additional batch: step 6
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v2v2
Immutable: step 0
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Immutable: step 1
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Auto Scaling Group
v2
Immutable: step 2
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Auto Scaling Group
v2
Immutable: step 3
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Auto Scaling Group
v2 v2 v2v2
Immutable: step 4
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Auto Scaling Group
v2 v2 v2v2
Immutable: step 5
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Auto Scaling Group
v2 v2 v2v2
Immutable: step 6
Elastic Beanstalk Environment
myapp.us-east-1.elasticbeanstalk.com
Auto Scaling Group
v2 v2 v2v2
Immutable: step 6
Auto Scaling Group
Elastic Beanstalk Environment
v2 v2
myapp.us-east-1.elasticbeanstalk.com
v2v2
Blue/Green: step 0
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Blue/Green: step 1
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp_new.us-east-1.elasticbeanstalk.com
v1v1
Cloned environment
Blue/Green: step 2
Auto Scaling Group
Elastic Beanstalk Environment
v2 V2
myapp_new.us-east-1.elasticbeanstalk.com
v2v2
Cloned environment
Blue/Green: step 3
Auto Scaling Group
Elastic Beanstalk Environment
v2 V2
myapp_new.us-east-1.elasticbeanstalk.com
v2v2
Cloned environment
Blue/Green: step 3
Cloned environment
Auto Scaling Group
Elastic Beanstalk Environment
v2 V2
myapp_new.us-east-1.elasticbeanstalk.com
v2v2
Blue/Green: step 4
Blue/Green: step 5
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp.us-east-1.elasticbeanstalk.com
v1v1
Cloned environment
Auto Scaling Group
Elastic Beanstalk Environment
v2 V2
myapp_new.us-east-1.elasticbeanstalk.com
v2v2
Blue/Green: step 6
Auto Scaling Group
Elastic Beanstalk Environment
v1 v1
myapp_new.us-east-1.elasticbeanstalk.com
v1v1
Cloned environment
Auto Scaling Group
Elastic Beanstalk Environment
v2 V2
myapp.us-east-1.elasticbeanstalk.com
v2v2
Application deployment options
Method Impact of failed deployment
Deploy
Time
Zero
Downtime
No DNS
Change
Rollback
process
Code
Deployed
To
All at Once Downtime  X  Re-deploy Existing
instances
Rolling Single batch out of service. Any
successful batches prior to
failure running new application
version
♦   Re-deploy Existing
instances
Rolling with
additional batch
Minimum if first batch fails,
otherwise similar to Rolling
♦   Re-deploy New &
existing
instances
Immutable Minimal    Re-deploy New
instances
Blue/Green Minimal   X Swap URL New
instances
 Options available for both Single Instance and Load Balanced/Auto-Scaled Environments ♦ Varies depending on instance batch size
Managed Platform Update
Configure your environment to automatically upgrade to the latest
version of a platform during a scheduled maintenance window.
• Permissions
• Maintenance Window
• Minor and Patch Updates
Key benefits:
• Automated Upgrades
• No/Minimal downtime
• No/Minimal impact on capacity
• Flexibility of manual updates
• Instance replacement
Demo
Managed updates
Auto Scaling
Min/Max
instances
Availability
Zones
Scaling
cooldown
Triggers based
scaling
Trigger measurement
(CPU utilization, network traffic, disk
activity, instance health)
Trigger statistic
Measurement period
Breach duration
Thresholds
Breach scale increment
Time-based
scaling
Name
Min/Max instance
Occurrence (One-time, Recurrent)
Recurrence (CRON expression- 30 8 * * 3)
Other tips
Logs, Metrics, & Alarms
• Enable log rotation to automatically publish logs to S3.
• Understand metrics available for your environment and what they mean.
• Set up alarms to automatically monitor critical metrics and send notifications when
metrics are outside normal operating range.
• Enable Amazon Route 53 health checks and alarms
Tag your environments
• Makes it easy to find resources belonging to a given environment.
• Can be used to monitor costs associated with a given environment and/or
application.
• AWS Elastic Beanstalk automatically tags environments with:
• Environment Name
• Environment ID
Key links
Elastic beanstalk resources:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/RelatedResources.html
Sample application:
https://github.com/awslabs/eb-node-express-sample
Troubleshooting tips:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/troubleshooting.html
Tutorials and samples:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/tutorials.html
Deployment options:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html
Managed Updates:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-platform-update-managed.html
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-servicerole.html#iam-servicerole-update
Configuring Auto Scaling:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.as.html
Load Testing with Locust:
https://aws.amazon.com/blogs/devops/using-locust-on-aws-elastic-beanstalk-for-distributed-load-generation-and-testing/
https://github.com/awslabs/eb-locustio-sample
Tagging your Elastic Beanstalk resources:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.tagging.html
Thank you!
Remember to complete
your evaluations!

Contenu connexe

Tendances

Tendances (20)

AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
AWS re:Invent 2016: Automated Governance of Your AWS Resources (DEV302)
 
Getting Started with Docker on AWS
Getting Started with Docker on AWSGetting Started with Docker on AWS
Getting Started with Docker on AWS
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
Deep Dive on Elastic Load Balancing
Deep Dive on Elastic Load BalancingDeep Dive on Elastic Load Balancing
Deep Dive on Elastic Load Balancing
 
PaaSing Your Code Around
PaaSing Your Code AroundPaaSing Your Code Around
PaaSing Your Code Around
 
(DVO312) Sony: Building At-Scale Services with AWS Elastic Beanstalk
(DVO312) Sony: Building At-Scale Services with AWS Elastic Beanstalk(DVO312) Sony: Building At-Scale Services with AWS Elastic Beanstalk
(DVO312) Sony: Building At-Scale Services with AWS Elastic Beanstalk
 
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
 
Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...
Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...
Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...
 
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
 
AWS Code Services
AWS Code ServicesAWS Code Services
AWS Code Services
 
CI/CD on AWS Deploy Everything All the Time
CI/CD on AWS Deploy Everything All the TimeCI/CD on AWS Deploy Everything All the Time
CI/CD on AWS Deploy Everything All the Time
 
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
 
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer ToolsDevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
 
Running Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic BeanstalkRunning Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic Beanstalk
 
(DVO306) AWS CodeDeploy: Automating Your Software Deployments
(DVO306) AWS CodeDeploy: Automating Your Software Deployments(DVO306) AWS CodeDeploy: Automating Your Software Deployments
(DVO306) AWS CodeDeploy: Automating Your Software Deployments
 
Amazon CloudWatch Logs and AWS Lambda
Amazon CloudWatch Logs and AWS LambdaAmazon CloudWatch Logs and AWS Lambda
Amazon CloudWatch Logs and AWS Lambda
 
Leveraging elastic web scale computing with AWS
 Leveraging elastic web scale computing with AWS Leveraging elastic web scale computing with AWS
Leveraging elastic web scale computing with AWS
 
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer ToolsDevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
 
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
 
(DVO202) DevOps at Amazon: A Look At Our Tools & Processes
(DVO202) DevOps at Amazon: A Look At Our Tools & Processes(DVO202) DevOps at Amazon: A Look At Our Tools & Processes
(DVO202) DevOps at Amazon: A Look At Our Tools & Processes
 

En vedette

En vedette (20)

Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon Redshift
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to Microservices
 
Architecting on The Cloud
Architecting on The CloudArchitecting on The Cloud
Architecting on The Cloud
 
Making (Almost) Any Database Faster and Cheaper with Caching
Making (Almost) Any Database Faster and Cheaper with CachingMaking (Almost) Any Database Faster and Cheaper with Caching
Making (Almost) Any Database Faster and Cheaper with Caching
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef Automate
 
Streaming Data Analytics with Amazon Kinesis Firehose and Redshift
Streaming Data Analytics with Amazon Kinesis Firehose and RedshiftStreaming Data Analytics with Amazon Kinesis Firehose and Redshift
Streaming Data Analytics with Amazon Kinesis Firehose and Redshift
 
Deep Dive on Amazon Redshift
Deep Dive on Amazon RedshiftDeep Dive on Amazon Redshift
Deep Dive on Amazon Redshift
 
Real-Time Data Exploration and Analytics with Amazon Elasticsearch Service
Real-Time Data Exploration and Analytics with Amazon Elasticsearch ServiceReal-Time Data Exploration and Analytics with Amazon Elasticsearch Service
Real-Time Data Exploration and Analytics with Amazon Elasticsearch Service
 
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
 
Deep Dive on Elastic File System - February 2017 AWS Online Tech Talks
Deep Dive on Elastic File System - February 2017 AWS Online Tech TalksDeep Dive on Elastic File System - February 2017 AWS Online Tech Talks
Deep Dive on Elastic File System - February 2017 AWS Online Tech Talks
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
 
Amazon Redshift Deep Dive - February Online Tech Talks
Amazon Redshift Deep Dive - February Online Tech TalksAmazon Redshift Deep Dive - February Online Tech Talks
Amazon Redshift Deep Dive - February Online Tech Talks
 
Webinar - Bringing Game Changing Insights with Graph Databases
Webinar - Bringing Game Changing Insights with Graph DatabasesWebinar - Bringing Game Changing Insights with Graph Databases
Webinar - Bringing Game Changing Insights with Graph Databases
 
Tracxn Research - Industrial Robotics Landscape, February 2017
Tracxn Research - Industrial Robotics Landscape, February 2017Tracxn Research - Industrial Robotics Landscape, February 2017
Tracxn Research - Industrial Robotics Landscape, February 2017
 
Container Orchestration with Amazon ECS
Container Orchestration with Amazon ECSContainer Orchestration with Amazon ECS
Container Orchestration with Amazon ECS
 
Lessons & Use-Cases at Scale - Dr. Pete Stanski
Lessons & Use-Cases at Scale - Dr. Pete StanskiLessons & Use-Cases at Scale - Dr. Pete Stanski
Lessons & Use-Cases at Scale - Dr. Pete Stanski
 
Best Practices with IoT Security - February Online Tech Talks
Best Practices with IoT Security - February Online Tech TalksBest Practices with IoT Security - February Online Tech Talks
Best Practices with IoT Security - February Online Tech Talks
 
Optimizing Storage for Big Data Analytics Workloads
Optimizing Storage for Big Data Analytics WorkloadsOptimizing Storage for Big Data Analytics Workloads
Optimizing Storage for Big Data Analytics Workloads
 
Building A Modern Data Analytics Architecture on AWS
Building A Modern Data Analytics Architecture on AWSBuilding A Modern Data Analytics Architecture on AWS
Building A Modern Data Analytics Architecture on AWS
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
 

Similaire à Deploy, scale and manage your application with AWS Elastic Beanstal

Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Amazon Web Services
 
Virtualize and automate your development environment for fun and profit
Virtualize and automate your development environment for fun and profitVirtualize and automate your development environment for fun and profit
Virtualize and automate your development environment for fun and profit
Andreas Heim
 

Similaire à Deploy, scale and manage your application with AWS Elastic Beanstal (20)

Deploy, Scale and Manage your Application with AWS Elastic Beanstalk
Deploy, Scale and Manage your Application with AWS Elastic BeanstalkDeploy, Scale and Manage your Application with AWS Elastic Beanstalk
Deploy, Scale and Manage your Application with AWS Elastic Beanstalk
 
Deploy, Scale and Manage your Application with AWS Elastic Beanstalk
Deploy, Scale and Manage your Application with AWS Elastic BeanstalkDeploy, Scale and Manage your Application with AWS Elastic Beanstalk
Deploy, Scale and Manage your Application with AWS Elastic Beanstalk
 
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer ToolsDevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
DevOps on AWS: Deep Dive on Continuous Delivery and the AWS Developer Tools
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
Managing Your Application Lifecycle on AWS: Continuous Integration and Deploy...
 
Continuous Integration and Deployment Best Practices on AWS
Continuous Integration and Deployment Best Practices on AWSContinuous Integration and Deployment Best Practices on AWS
Continuous Integration and Deployment Best Practices on AWS
 
Deploying your web application with AWS ElasticBeanstalk
Deploying your web application with AWS ElasticBeanstalkDeploying your web application with AWS ElasticBeanstalk
Deploying your web application with AWS ElasticBeanstalk
 
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
Managing Docker & ECS Based Applications with AWS Elastic Beanstalk - DevDay ...
 
AWS July Webinar Series-Deploying and Scaling Web Application with AWS Elasti...
AWS July Webinar Series-Deploying and Scaling Web Application with AWS Elasti...AWS July Webinar Series-Deploying and Scaling Web Application with AWS Elasti...
AWS July Webinar Series-Deploying and Scaling Web Application with AWS Elasti...
 
AWS Elastic Beanstalk: Running Multi-Container Docker Applications - DevDay L...
AWS Elastic Beanstalk: Running Multi-Container Docker Applications - DevDay L...AWS Elastic Beanstalk: Running Multi-Container Docker Applications - DevDay L...
AWS Elastic Beanstalk: Running Multi-Container Docker Applications - DevDay L...
 
Learn you some Ansible for great good!
Learn you some Ansible for great good!Learn you some Ansible for great good!
Learn you some Ansible for great good!
 
AWS Elastic Beanstalk - Running Microservices and Docker
AWS Elastic Beanstalk - Running Microservices and DockerAWS Elastic Beanstalk - Running Microservices and Docker
AWS Elastic Beanstalk - Running Microservices and Docker
 
Virtualize and automate your development environment for fun and profit
Virtualize and automate your development environment for fun and profitVirtualize and automate your development environment for fun and profit
Virtualize and automate your development environment for fun and profit
 
Aws elastic beanstalk
Aws elastic beanstalkAws elastic beanstalk
Aws elastic beanstalk
 
Transforming Software Development
Transforming Software Development Transforming Software Development
Transforming Software Development
 
AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...
AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...
AWS re:Invent 2016: Infrastructure Continuous Delivery Using AWS CloudFormati...
 
Agile Deployment using Git and AWS Elastic Beanstalk
Agile Deployment using Git and AWS Elastic BeanstalkAgile Deployment using Git and AWS Elastic Beanstalk
Agile Deployment using Git and AWS Elastic Beanstalk
 
Chris Omland - AWS Code Deploy - BSDC 2016
Chris Omland - AWS Code Deploy - BSDC 2016Chris Omland - AWS Code Deploy - BSDC 2016
Chris Omland - AWS Code Deploy - BSDC 2016
 
(APP201) Going Zero to Sixty with AWS Elastic Beanstalk | AWS re:Invent 2014
(APP201) Going Zero to Sixty with AWS Elastic Beanstalk | AWS re:Invent 2014(APP201) Going Zero to Sixty with AWS Elastic Beanstalk | AWS re:Invent 2014
(APP201) Going Zero to Sixty with AWS Elastic Beanstalk | AWS re:Invent 2014
 
Getting Started with Docker on AWS
Getting Started with Docker on AWSGetting Started with Docker on AWS
Getting Started with Docker on AWS
 

Plus de Amazon 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

Plus de 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
 

Dernier

No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
Sheetaleventcompany
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
Kayode Fayemi
 

Dernier (20)

VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
 
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animals
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptx
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
 

Deploy, scale and manage your application with AWS Elastic Beanstal

  • 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Jeff Hoffman | Director, Software Development | AWS Elastic Beanstalk Adhiraj Singh | Sr. Product Manager | AWS Elastic Beanstalk November 29, 2016 DEV206 Scaling Your Web Applications with AWS Elastic Beanstalk
  • 2. Agenda • Elastic Beanstalk Introduction • Elastic Beanstalk vs. DIY • Getting started with Elastic Beanstalk • Demo – Sample Application • Best Practices • Deployment options • Managed Updated • Auto Scaling • Other tips
  • 3. Developer challenges • Complexity of deploying code, provisioning and managing infrastructure • Expertise and time needed to manage and configure servers, databases, load balancers, firewalls, and networks • How to automate application scaling • Lack of consistency across teams
  • 4. What is Elastic Beanstalk? AWS Elastic Beanstalk is an easy-to-use service for deploying, scaling, and managing web applications and services.
  • 5. AWS Elastic Beanstalk vs. Do It Yourself Your code HTTP Server Application Server Language Interpreter Operating System Host Elastic Beanstalk configures each EC2 instance in your environment with the components necessary to run applications for the selected platform. Focus on building your application Provided by you Provided and managed by AWS Elastic Beanstalk (EB) On-instance configuration
  • 6. AWS Elastic Beanstalk vs. Do It Yourself • Preconfigured Infrastructure • Single Instance (Dev, Low Cost) • Load Balanced, Auto Scaling (Production) • Web & Worker tiers • Elastic Beanstalk provisions necessary infrastructure resources such as the load balancer, Auto Scaling group, security groups, database (optional), etc. • Provides a unique domain name for your application (e.g.: youapp.regionx.elasticbeanstalk.com) Infrastructure stack
  • 7. Elastic Beanstalk benefits Fast & simple to begin Developer productivity/agility Impossible to outgrow Complete resource control No additional charge to use Elastic Beanstalk. You pay only for underlying AWS resources (i.e., EC2 instances, S3, etc.)
  • 9. How do I get started with Elastic Beanstalk?
  • 10. Information required to deploy application 01 02 03 04 Region Stack (container) type Single Instance Load Balanced with Auto ScalingOR Database (RDS) Your code Optional Supported Platforms
  • 11. Building blocks Application Application Versions ( V1, V2, …,Vx) Environment 1 Environment 2 Environment .. n
  • 12. How to deploy applications 1. Via AWS Management Console 2. Via AWS Toolkit for Eclipse and Visual Studio IDE 3. Via AWS SDKs and CLI 4. Via EB command line interface $ eb deploy
  • 13. Deploy sample application (EB CLI) Initial application deployment workflow $ git clone https://github.com/awslabs/eb- node-express-sample.git Download sample application02 $ eb init Create your Elastic Beanstalk app03 Follow the prompts to configure the environment 04 05 Create the resources and launch the application $ eb create $ pip install --upgrade awsebcli Install the AWS Elastic Beanstalk command line interface (EB CLI) 01
  • 14. Update sample application (EB CLI) Update application workflow Update your code01 $ git add . $ git commit –m “v2.0” $ eb deploy Add & commit code to repository02 Open application once deployment completes 03 $ eb open
  • 15. Sample application details • Application dependency management • Configuring/customizing an environment using ebextensions • Choosing a remote source repository: AWS CodeCommit • Adding additional AWS resources (e.g.: DynamoDB, SNS, SQS etc.)
  • 16. Demo
  • 17.
  • 18. Best practices • Deployment options • Managed Platform Updates • Auto Scaling • Other tips
  • 19. Deployment options * Default method ^ ”All at Once” Method used Environment Type Deployment category Method All at Once* Immutable (New) Disabled*^ Immutable (New) All at Once Rolling* Rolling with additional batch Immutable Disabled^ Rolling based on Health* Rolling based on Time Immutable Single Instance Load Balanced/Auto-Scaled Application Platform/Configuration Application Platform/Configuration
  • 20. All at once: step 0 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 21. All at once: step 1 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v2v2
  • 22. All at once: step 2 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v2v2
  • 23. Rolling: step 0 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 24. Rolling: step 1 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 25. Rolling: step 2 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 26. Rolling: step 3 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v2v2
  • 27. Rolling: step 4 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v2v2
  • 28. Rolling with additional batch: step 0 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 29. Rolling with additional batch: step 1 Auto Scaling Group Elastic Beanstalk Environment v2 v2 v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 30. Rolling with additional batch: step 2 Auto Scaling Group Elastic Beanstalk Environment v2 v2 v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 31. Rolling with additional batch: step 3 Auto Scaling Group Elastic Beanstalk Environment v2 v2 v2 v2 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 32. Rolling with additional batch: step 4 Auto Scaling Group Elastic Beanstalk Environment v2 v2 v2 v2 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 33. Rolling with additional batch: step 5 Auto Scaling Group Elastic Beanstalk Environment v2 v2 v2 v2 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 34. Rolling with additional batch: step 6 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v2v2
  • 35. Immutable: step 0 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 36. Immutable: step 1 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1 Auto Scaling Group v2
  • 37. Immutable: step 2 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1 Auto Scaling Group v2
  • 38. Immutable: step 3 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1 Auto Scaling Group v2 v2 v2v2
  • 39. Immutable: step 4 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1 Auto Scaling Group v2 v2 v2v2
  • 40. Immutable: step 5 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1 Auto Scaling Group v2 v2 v2v2
  • 41. Immutable: step 6 Elastic Beanstalk Environment myapp.us-east-1.elasticbeanstalk.com Auto Scaling Group v2 v2 v2v2
  • 42. Immutable: step 6 Auto Scaling Group Elastic Beanstalk Environment v2 v2 myapp.us-east-1.elasticbeanstalk.com v2v2
  • 43. Blue/Green: step 0 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1
  • 44. Blue/Green: step 1 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp_new.us-east-1.elasticbeanstalk.com v1v1 Cloned environment
  • 45. Blue/Green: step 2 Auto Scaling Group Elastic Beanstalk Environment v2 V2 myapp_new.us-east-1.elasticbeanstalk.com v2v2 Cloned environment
  • 46. Blue/Green: step 3 Auto Scaling Group Elastic Beanstalk Environment v2 V2 myapp_new.us-east-1.elasticbeanstalk.com v2v2 Cloned environment
  • 47. Blue/Green: step 3 Cloned environment Auto Scaling Group Elastic Beanstalk Environment v2 V2 myapp_new.us-east-1.elasticbeanstalk.com v2v2
  • 49. Blue/Green: step 5 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp.us-east-1.elasticbeanstalk.com v1v1 Cloned environment Auto Scaling Group Elastic Beanstalk Environment v2 V2 myapp_new.us-east-1.elasticbeanstalk.com v2v2
  • 50. Blue/Green: step 6 Auto Scaling Group Elastic Beanstalk Environment v1 v1 myapp_new.us-east-1.elasticbeanstalk.com v1v1 Cloned environment Auto Scaling Group Elastic Beanstalk Environment v2 V2 myapp.us-east-1.elasticbeanstalk.com v2v2
  • 51. Application deployment options Method Impact of failed deployment Deploy Time Zero Downtime No DNS Change Rollback process Code Deployed To All at Once Downtime  X  Re-deploy Existing instances Rolling Single batch out of service. Any successful batches prior to failure running new application version ♦   Re-deploy Existing instances Rolling with additional batch Minimum if first batch fails, otherwise similar to Rolling ♦   Re-deploy New & existing instances Immutable Minimal    Re-deploy New instances Blue/Green Minimal   X Swap URL New instances  Options available for both Single Instance and Load Balanced/Auto-Scaled Environments ♦ Varies depending on instance batch size
  • 52. Managed Platform Update Configure your environment to automatically upgrade to the latest version of a platform during a scheduled maintenance window. • Permissions • Maintenance Window • Minor and Patch Updates Key benefits: • Automated Upgrades • No/Minimal downtime • No/Minimal impact on capacity • Flexibility of manual updates • Instance replacement
  • 54.
  • 55. Auto Scaling Min/Max instances Availability Zones Scaling cooldown Triggers based scaling Trigger measurement (CPU utilization, network traffic, disk activity, instance health) Trigger statistic Measurement period Breach duration Thresholds Breach scale increment Time-based scaling Name Min/Max instance Occurrence (One-time, Recurrent) Recurrence (CRON expression- 30 8 * * 3)
  • 56. Other tips Logs, Metrics, & Alarms • Enable log rotation to automatically publish logs to S3. • Understand metrics available for your environment and what they mean. • Set up alarms to automatically monitor critical metrics and send notifications when metrics are outside normal operating range. • Enable Amazon Route 53 health checks and alarms Tag your environments • Makes it easy to find resources belonging to a given environment. • Can be used to monitor costs associated with a given environment and/or application. • AWS Elastic Beanstalk automatically tags environments with: • Environment Name • Environment ID
  • 57. Key links Elastic beanstalk resources: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/RelatedResources.html Sample application: https://github.com/awslabs/eb-node-express-sample Troubleshooting tips: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/troubleshooting.html Tutorials and samples: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/tutorials.html Deployment options: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html Managed Updates: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-platform-update-managed.html http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-servicerole.html#iam-servicerole-update Configuring Auto Scaling: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.as.html Load Testing with Locust: https://aws.amazon.com/blogs/devops/using-locust-on-aws-elastic-beanstalk-for-distributed-load-generation-and-testing/ https://github.com/awslabs/eb-locustio-sample Tagging your Elastic Beanstalk resources: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.tagging.html