SlideShare una empresa de Scribd logo
1 de 13
AWS Elastic
Beanstalk
Amazon's Intro to PaaS
Tiered Infrastructure Offerings
1. Cloud Formation
a. IaaS, first step towards PaaS
b. Allows creation of Stacks within an autoscaling group
2. Elastic Beanstalk
a. True PaaS
b. A bit simplistic: several standard stacks offered with limited
customization ability
c. Very easy and fast to set up
3. OpsWorks
a. Very complete PaaS solution
b. For when a bespoke platform is an absolute must
Elastic Beanstalk Quick Overview
Supported Solution Stacks
Linux:
• Deployment with eb tool from git
• EC2 instances running Linux + Apache
• Ruby: Rails/Passenger + Sinatra
• Python: Django + Flask
• PHP: CakePHP + Symphony
• Java: Tomcat
Windows:
• Deployment through MS Visual Studio with AWS Toolkit or by hand with
Microsoft WebDeploy .zip files
• EC2 instances running Windows 2008 R2 and IIS 7.5
Supported Databases
DB Support is done through Amazon's RDS
This means that all of the three different DB
engines are supported:
1. MySQL
2. Oracle (BYOL & Amazon Provided)
3. MS SQL
Anatomy of an EB Application
Putting it all together -
configuration
Basic Configuration
~/app/.elasticbeanstalk/config
[global]
[branches]
[branch:branch01]
[branch:branch02]
~/app/.elasticbeanstalk/options.${env}
[aws:elasticbeanstalk:application:environ
ment]
[aws:rds:dbinstance]
[aws:elasticbeanstalk:hostmanager]
[aws:autoscaling:launchconfiguration]
[aws:autoscaling:asg]
[aws:elasticbeanstalk:application]
[aws:elasticbeanstalk:monitoring]
[aws:elasticbeanstalk:sns:topics]
Extensions
~/app/.ebextensions/*.config
# "Infra" extensions
Packages
Sources
Files
Users
Groups
Commands
Services
# App extensions
Container_commands
Option_settings
# Environment extensions
Resources
Putting it all together - execution
1.eb init
1.eb start
1.git aws.push
- not to be confused with git push
Putting it all together - maintenance
When environment configuration changes:
eb update
When deploying new code / adding extensions:
git aws.push
Progress update:
eb status
Benefits and Use Cases
• Smaller / simpler apps where code is pretty
standard
• Extremely fast provisioning time
• Proof against spikes thanks to autoscaling
• Bespoke code + standard platform =
(almost) zero time to production
• Can work in conjunction with other AWS
services
Interesting Problems - part 1
How do we manage branching in git and
environments in Elastic Beanstalk?
Easy solution: EB offers branch - to -
environment mappings
Defined in ~/app/.elasticbeanstalk/config
Interesting Problems - part 1
git://myapp
branch:developer01
branch:developer02 branch:master
branch:staging
~/myapp
eb-environment:production
eb-environment:staging
eb-environment:uat
Interesting Problems - part 2
How to run cron jobs?
• Ruby app requires rake to run regularly
• Several EC2 instances, but only one database
• Autoscaling challenges
• Every instance identical - same crontab
• Solutions:
o Use Message Queuing (SNS) - a bit too complex
o Don't use cron - yeah right, and get devs to change the
code?
o Leader election together with ELB: simple, foolproof

Más contenido relacionado

La actualidad más candente

TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
Amazon Web Services
 
Deploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with GitDeploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with Git
Amazon Web Services
 

La actualidad más candente (20)

Amazon Web Services - Elastic Beanstalk
Amazon Web Services - Elastic BeanstalkAmazon Web Services - Elastic Beanstalk
Amazon Web Services - Elastic Beanstalk
 
Deploy, Manage, and Scale your Apps with AWS Elastic Beanstalk
Deploy, Manage, and Scale your Apps with AWS Elastic BeanstalkDeploy, Manage, and Scale your Apps with AWS Elastic Beanstalk
Deploy, Manage, and Scale your Apps with AWS Elastic Beanstalk
 
Ruby on Rails and AWS Elastic Beanstalk
Ruby on Rails and AWS Elastic BeanstalkRuby on Rails and AWS Elastic Beanstalk
Ruby on Rails and AWS Elastic Beanstalk
 
DevOps with Elastic Beanstalk - TCCC-2014
DevOps with Elastic Beanstalk - TCCC-2014DevOps with Elastic Beanstalk - TCCC-2014
DevOps with Elastic Beanstalk - TCCC-2014
 
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
 
AWS CodeDeploy - basic intro
AWS CodeDeploy - basic introAWS CodeDeploy - basic intro
AWS CodeDeploy - basic intro
 
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
 
Understand AWS OpsWorks - A DevOps Tool from AWS
Understand AWS OpsWorks - A DevOps Tool from AWSUnderstand AWS OpsWorks - A DevOps Tool from AWS
Understand AWS OpsWorks - A DevOps Tool from AWS
 
Deploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic BeanstalkDeploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic Beanstalk
 
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
 
Continuous Delivery with Elastic Beanstalk And CodePipeline on AWS
Continuous Delivery with Elastic Beanstalk And CodePipeline on AWSContinuous Delivery with Elastic Beanstalk And CodePipeline on AWS
Continuous Delivery with Elastic Beanstalk And CodePipeline on AWS
 
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic BeanstalkDeploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
 
A real-life account of moving 100% to a public cloud
A real-life account of moving 100% to a public cloudA real-life account of moving 100% to a public cloud
A real-life account of moving 100% to a public cloud
 
Introducing AWS OpsWorks, a DevOps application management platform
Introducing AWS OpsWorks, a DevOps application management platformIntroducing AWS OpsWorks, a DevOps application management platform
Introducing AWS OpsWorks, a DevOps application management platform
 
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
 
AWS Webcast - AWS OpsWorks Continuous Integration Demo
AWS Webcast - AWS OpsWorks Continuous Integration Demo  AWS Webcast - AWS OpsWorks Continuous Integration Demo
AWS Webcast - AWS OpsWorks Continuous Integration Demo
 
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
 
T3 - Deploy, manage, and scale your apps
T3 - Deploy, manage, and scale your appsT3 - Deploy, manage, and scale your apps
T3 - Deploy, manage, and scale your apps
 
Deploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with GitDeploy PHP Apps on AWS Beanstalk & Deploy with Git
Deploy PHP Apps on AWS Beanstalk & Deploy with Git
 
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
 

Destacado

Trading Options
Trading OptionsTrading Options
Trading Options
aldousbqy
 
Binary Trading Strategies
Binary Trading StrategiesBinary Trading Strategies
Binary Trading Strategies
sparkesjyr
 
Climate Change Education - A/Prof Hilary Whitehouse
Climate Change Education - A/Prof Hilary WhitehouseClimate Change Education - A/Prof Hilary Whitehouse
Climate Change Education - A/Prof Hilary Whitehouse
Meg Collis
 
อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์
BoMz Zilch
 
อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์
BoMz Zilch
 
Нужен сайт? Заказать сайт визитку!
Нужен сайт? Заказать сайт визитку!Нужен сайт? Заказать сайт визитку!
Нужен сайт? Заказать сайт визитку!
Lesya Tarasenko
 
андрология 1
андрология 1андрология 1
андрология 1
imad almasri
 

Destacado (20)

Trading Options
Trading OptionsTrading Options
Trading Options
 
Journalism Fundamentals
Journalism Fundamentals Journalism Fundamentals
Journalism Fundamentals
 
Study of Greater Sciatic Notch in Sex Determination of Hip Bone by Metric Met...
Study of Greater Sciatic Notch in Sex Determination of Hip Bone by Metric Met...Study of Greater Sciatic Notch in Sex Determination of Hip Bone by Metric Met...
Study of Greater Sciatic Notch in Sex Determination of Hip Bone by Metric Met...
 
Binary Trading Strategies
Binary Trading StrategiesBinary Trading Strategies
Binary Trading Strategies
 
Film magazine covers
Film magazine coversFilm magazine covers
Film magazine covers
 
Openstack SAGE-AU
Openstack SAGE-AUOpenstack SAGE-AU
Openstack SAGE-AU
 
Christmas
ChristmasChristmas
Christmas
 
Climate Change Education - A/Prof Hilary Whitehouse
Climate Change Education - A/Prof Hilary WhitehouseClimate Change Education - A/Prof Hilary Whitehouse
Climate Change Education - A/Prof Hilary Whitehouse
 
Professional Persona Project - John Patino
Professional Persona Project - John PatinoProfessional Persona Project - John Patino
Professional Persona Project - John Patino
 
Estas son las bobadas que vemos diariamente
Estas son las bobadas que vemos diariamenteEstas son las bobadas que vemos diariamente
Estas son las bobadas que vemos diariamente
 
Scaling from Bare Metal to Behemoth with Docker and .NET vNext
Scaling from Bare Metal to Behemoth with Docker and .NET vNextScaling from Bare Metal to Behemoth with Docker and .NET vNext
Scaling from Bare Metal to Behemoth with Docker and .NET vNext
 
How to revolutionise an industry with ZeroVM
How to revolutionise an industry with ZeroVMHow to revolutionise an industry with ZeroVM
How to revolutionise an industry with ZeroVM
 
Beating anxiety
Beating anxietyBeating anxiety
Beating anxiety
 
Conventions of a Thriller
Conventions of a ThrillerConventions of a Thriller
Conventions of a Thriller
 
อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์
 
อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์
 
Нужен сайт? Заказать сайт визитку!
Нужен сайт? Заказать сайт визитку!Нужен сайт? Заказать сайт визитку!
Нужен сайт? Заказать сайт визитку!
 
андрология 1
андрология 1андрология 1
андрология 1
 
ผู้ให้บริการอินเทอร์เน็ต
ผู้ให้บริการอินเทอร์เน็ตผู้ให้บริการอินเทอร์เน็ต
ผู้ให้บริการอินเทอร์เน็ต
 
Pertemuan ke 1 pengenalan komputer
Pertemuan ke 1 pengenalan komputerPertemuan ke 1 pengenalan komputer
Pertemuan ke 1 pengenalan komputer
 

Similar a AWS elastic beanstalk

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
 
基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻
Mason Mei
 
Overview of PaaS: Java experience
Overview of PaaS: Java experienceOverview of PaaS: Java experience
Overview of PaaS: Java experience
Igor Anishchenko
 

Similar a AWS elastic beanstalk (20)

Distribua, gerencie e escale suas aplicações com o aws elastic beanstalk
Distribua, gerencie e escale suas aplicações com o aws elastic beanstalkDistribua, gerencie e escale suas aplicações com o aws elastic beanstalk
Distribua, gerencie e escale suas aplicações com o aws elastic beanstalk
 
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...
 
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
 
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 ...
 
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
 
(DEV302) Hosting ASP.Net 5 Apps in AWS with Docker & AWS CodeDeploy
(DEV302) Hosting ASP.Net 5 Apps in AWS with Docker & AWS CodeDeploy(DEV302) Hosting ASP.Net 5 Apps in AWS with Docker & AWS CodeDeploy
(DEV302) Hosting ASP.Net 5 Apps in AWS with Docker & AWS CodeDeploy
 
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
 
基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻基于Aws的持续集成、交付和部署 代闻
基于Aws的持续集成、交付和部署 代闻
 
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
 
A 60-mn tour of AWS compute (March 2016)
A 60-mn tour of AWS compute (March 2016)A 60-mn tour of AWS compute (March 2016)
A 60-mn tour of AWS compute (March 2016)
 
E301 Elastic Beanstalk PaaS
E301 Elastic Beanstalk PaaSE301 Elastic Beanstalk PaaS
E301 Elastic Beanstalk PaaS
 
Overview of PaaS: Java experience
Overview of PaaS: Java experienceOverview of PaaS: Java experience
Overview of PaaS: Java experience
 
Overview of PaaS: Java experience
Overview of PaaS: Java experienceOverview of PaaS: Java experience
Overview of PaaS: Java experience
 
eCAP Developer Walkthru
eCAP Developer WalkthrueCAP Developer Walkthru
eCAP Developer Walkthru
 
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...
 
Scaling Django Apps using AWS Elastic Beanstalk
Scaling Django Apps using AWS Elastic BeanstalkScaling Django Apps using AWS Elastic Beanstalk
Scaling Django Apps using AWS Elastic Beanstalk
 
AWS Elastic Beanstalk運作微服務與Docker
AWS Elastic Beanstalk運作微服務與Docker AWS Elastic Beanstalk運作微服務與Docker
AWS Elastic Beanstalk運作微服務與Docker
 
(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
 
Managing Your Cloud Assets
Managing Your Cloud AssetsManaging Your Cloud Assets
Managing Your Cloud Assets
 
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...
 

Último

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Último (20)

Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 

AWS elastic beanstalk

  • 2. Tiered Infrastructure Offerings 1. Cloud Formation a. IaaS, first step towards PaaS b. Allows creation of Stacks within an autoscaling group 2. Elastic Beanstalk a. True PaaS b. A bit simplistic: several standard stacks offered with limited customization ability c. Very easy and fast to set up 3. OpsWorks a. Very complete PaaS solution b. For when a bespoke platform is an absolute must
  • 4. Supported Solution Stacks Linux: • Deployment with eb tool from git • EC2 instances running Linux + Apache • Ruby: Rails/Passenger + Sinatra • Python: Django + Flask • PHP: CakePHP + Symphony • Java: Tomcat Windows: • Deployment through MS Visual Studio with AWS Toolkit or by hand with Microsoft WebDeploy .zip files • EC2 instances running Windows 2008 R2 and IIS 7.5
  • 5. Supported Databases DB Support is done through Amazon's RDS This means that all of the three different DB engines are supported: 1. MySQL 2. Oracle (BYOL & Amazon Provided) 3. MS SQL
  • 6. Anatomy of an EB Application
  • 7. Putting it all together - configuration Basic Configuration ~/app/.elasticbeanstalk/config [global] [branches] [branch:branch01] [branch:branch02] ~/app/.elasticbeanstalk/options.${env} [aws:elasticbeanstalk:application:environ ment] [aws:rds:dbinstance] [aws:elasticbeanstalk:hostmanager] [aws:autoscaling:launchconfiguration] [aws:autoscaling:asg] [aws:elasticbeanstalk:application] [aws:elasticbeanstalk:monitoring] [aws:elasticbeanstalk:sns:topics] Extensions ~/app/.ebextensions/*.config # "Infra" extensions Packages Sources Files Users Groups Commands Services # App extensions Container_commands Option_settings # Environment extensions Resources
  • 8. Putting it all together - execution 1.eb init 1.eb start 1.git aws.push - not to be confused with git push
  • 9. Putting it all together - maintenance When environment configuration changes: eb update When deploying new code / adding extensions: git aws.push Progress update: eb status
  • 10. Benefits and Use Cases • Smaller / simpler apps where code is pretty standard • Extremely fast provisioning time • Proof against spikes thanks to autoscaling • Bespoke code + standard platform = (almost) zero time to production • Can work in conjunction with other AWS services
  • 11. Interesting Problems - part 1 How do we manage branching in git and environments in Elastic Beanstalk? Easy solution: EB offers branch - to - environment mappings Defined in ~/app/.elasticbeanstalk/config
  • 12. Interesting Problems - part 1 git://myapp branch:developer01 branch:developer02 branch:master branch:staging ~/myapp eb-environment:production eb-environment:staging eb-environment:uat
  • 13. Interesting Problems - part 2 How to run cron jobs? • Ruby app requires rake to run regularly • Several EC2 instances, but only one database • Autoscaling challenges • Every instance identical - same crontab • Solutions: o Use Message Queuing (SNS) - a bit too complex o Don't use cron - yeah right, and get devs to change the code? o Leader election together with ELB: simple, foolproof