This document provides an overview of AWS Elastic Beanstalk, including:
- Elastic Beanstalk is a PaaS service that makes it easy to deploy and manage applications in the AWS cloud.
- It allows developers to focus on coding instead of managing infrastructure. Elastic Beanstalk automatically handles scaling and maintenance of the application.
- The key components of Elastic Beanstalk include applications, versions, environments, and tiers. Environments run specific versions of an application and can include a web server tier and worker tier.
2. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Outline
What is Elastic Beanstalk?
01
3. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Outline
What is Elastic Beanstalk?
Features of Elastic
Beanstalk
01
02
4. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Outline
What is Elastic Beanstalk?
Features of Elastic
Beanstalk
Components of Beanstalk
01
02
03
5. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Outline
What is Elastic Beanstalk?
Features of Elastic
Beanstalk
Components of Beanstalk
Architecture of Elastic
Beanstalk
01
02
03
04
6. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Outline
What is Elastic Beanstalk?
Features of Elastic
Beanstalk
Components of Beanstalk Hands-On
Architecture of Elastic
Beanstalk
01
02
03 05
04
8. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
What is Amazon Elastic Beanstalk?
AWS Elastic Beanstalk is an PAAS service used for
deploying and scaling web applications and services
developed with Java, .NET, PHP, Node.js etc on familiar
servers such as Apache, Nginx, Tomcat, and IIS.
9. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
What is Amazon Elastic Beanstalk?
AWS Elastic Beanstalk is an PAAS service used for
deploying and scaling web applications and services
developed with Java, .NET, PHP, Node.js etc on familiar
servers such as Apache, Nginx, Tomcat, and IIS.
10. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Scenario: A Computer
You can go to a computer ware house and buy
different components according to your
requirement & assemble them.
You can visit a electronic retail store and buy
a computer that fits your requirements.
Deploying an application without using Elastic
Beanstalk
Deploying an application using Elastic
Beanstalk
11. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
What is Amazon Elastic Beanstalk?
AWS Elastic Beanstalk is an PAAS service used for
deploying and scaling web applications and services
developed with Java, .NET, PHP, Node.js etc on familiar
servers such as Apache, Nginx, Tomcat, and IIS.
12. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
PAAS(Platform-As-A-Service)
Applications
Data
Runtime
Virtualization
Operating System
Middleware
Servers
Storage
Network
Managed by
Customer
Managed by
Cloud Provider
13. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
PAAS(Platform-As-A-Service)
Applications
Data
Runtime
Virtualization
Operating System
Middleware
Servers
Storage
Network
Managed by
Customer
Managed by
Cloud Provider
01 Quicker Deployment
14. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
PAAS(Platform-As-A-Service)
Applications
Data
Runtime
Virtualization
Operating System
Middleware
Servers
Storage
Network
Managed by
Customer
Managed by
Cloud Provider
01
02
Quicker Deployment
Simplifies Operations
15. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
PAAS(Platform-As-A-Service)
Applications
Data
Runtime
Virtualization
Operating System
Middleware
Servers
Storage
Network
Managed by
Customer
Managed by
Cloud Provider
01
03
02
Quicker Deployment
Simplifies Operations
Cost Effectiveness
16. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
PAAS(Platform-As-A-Service)
Applications
Data
Runtime
Virtualization
Operating System
Middleware
Servers
Storage
Network
Managed by
Customer
Managed by
Cloud Provider
01
04
03
02
Quicker Deployment
Simplifies Operations
Multi-Tenant Architecture
Cost Effectiveness
17. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
PAAS(Platform-As-A-Service)
Applications
Data
Runtime
Virtualization
Operating System
Middleware
Servers
Storage
Network
Managed by
Customer
Managed by
Cloud Provider
01
04
03
02
05
Quicker Deployment
Simplifies Operations
Multi-Tenant Architecture
Cost Effectiveness
Better User Experience
18. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Hosting Platforms
Various application hosting platforms providing PAAS
Open Shift
Google App Engine
Python Anywhere
Scalingo
Elastic Beanstalk
Azure App Service
Others
20. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Features of AWS Elastic Beanstalk
Elastic Beanstalk is the fastest and simplest way to
deploy your application on AWS.
21. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Features of AWS Elastic Beanstalk
Elastic Beanstalk is the fastest and simplest way to
deploy your application on AWS.
Enables you to focus on writing code rather than
spending time managing and configuring servers etc.
22. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Features of AWS Elastic Beanstalk
Elastic Beanstalk is the fastest and simplest way to
deploy your application on AWS.
Enables you to focus on writing code rather than
spending time managing and configuring servers etc.
Automatically scales your application up and down
based on application's specific needs.
23. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Features of AWS Elastic Beanstalk
Elastic Beanstalk is the fastest and simplest way to
deploy your application on AWS.
Enables you to focus on writing code rather than
spending time managing and configuring servers etc.
Automatically scales your application up and down
based on application's specific needs.
Gives freedom to select the AWS resources, like EC2
instance type, that are optimal for your application.
25. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Components Of Elastic Beanstalk
01 Application 03
• An application is a collection
of components including
environments, versions and
environment configuration.
• An application in Elastic
Beanstalk is conceptually
similar to a folder.
• Ex : tomcat-webapp
tomcat-webapp
26. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
02 Application
Version
Components Of Elastic Beanstalk
tomcat-webapp
• An application version refers
to a specific, labeled iteration
of deployable code for a web
application.
• An application version points
to an Amazon S3 object that
contains the deployable code
such as a Java WAR file.
27. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Components Of Elastic Beanstalk
03 02Environment Environment
• Environments within Elastic
Beanstalk Application house
different running version of
our application.
• Each environment runs only a
single application version at a
time.
• Ex: tomcat-webapp-dev
tomcat-webapp-prod
04 Environment
Tier
• There are two types of tier:
Web Server Tier,
Worker Tier.
• Web Server Tier serves HTTP
requests.
• Worker Tier background-
processing background tasks.
28. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Components Of Elastic Beanstalk
• Elastic Beanstalk reports the
health of a web server
environment depending on
how the application running
in it responds to the health
check.
• Uses one of four colours to
describe status.
05
Environment
Health
Gr
G
R
Y
Environment is being updated
Passed recent health check
Failed one or more checks
Failed three or more checks
30. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Server Environment
Web Server Environment Tier handles HTTP requests.
Beanstalk Environment01
02
03
04
05
06
Elastic Load Balancer
Auto Scaling Group
EC2 Instances
Host Manager
Security Groups
1
2
3
6
1
3
44 5
31. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Server Environment
Web Server Environment Tier handles HTTP requests.
Beanstalk Environment01
02
03
04
05
06
Elastic Load Balancer
Auto Scaling Group
EC2 Instances
Host Manager
Security Groups
1
32. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Server Environment
Web Server Environment Tier handles HTTP requests.
Beanstalk Environment01
02
03
04
05
06
Elastic Load Balancer
Auto Scaling Group
EC2 Instances
Host Manager
Security Groups
1
2
CNAME
Amazon Route 53
33. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Server Environment
Web Server Environment Tier handles HTTP requests.
Beanstalk Environment01
02
03
04
05
06
Elastic Load Balancer
Auto Scaling Group
EC2 Instances
Host Manager
Security Groups
1
2
3
34. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Server Environment
Web Server Environment Tier handles HTTP requests.
Beanstalk Environment01
02
03
04
05
06
Elastic Load Balancer
Auto Scaling Group
EC2 Instances
Host Manager
Security Groups
4
1
2
3
44
Container Type
35. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Server Environment
Web Server Environment Tier handles HTTP requests.
Beanstalk Environment01
02
03
04
05
06
Elastic Load Balancer
Auto Scaling Group
EC2 Instances
Host Manager
Security Groups
1
2
3
44 5
36. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Web Server Environment
Web Server Environment Tier handles HTTP requests.
Beanstalk Environment01
02
03
04
05
06
Elastic Load Balancer
Auto Scaling Group
EC2 Instances
Host Manager
Security Groups
1
2
3
44
6
5
6
37. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Worker Environment
What is worker?
A worker is a process that handles
background tasks during resource-
intensive or time-intensive operations.
Emails Notifications
Generates Reports
Clean-up Databases
38. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
Why Do We Need Worker?
Request1
Request2
Request1
Request2
Request1 success
Request1 processing
Processing Processed
Time-Intensive
Time-Intensive Performance and
Requests Accepted
Worker
Environment
Web Server
Web Server
39. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
How Do These Two Environments Communicate?
Beanstalk
Application
Beanstalk
Application
Daemon
SQS Message SQS Queue SQS Message
HTTP POST http://localhost:80
HTTP Response
Elastic Beanstalk Container
Auto Scaling Group
Elastic Beanstalk Container
Auto Scaling Group
Web Server Environment Worker Environment
40. AWS Architect Certification Training https://www.edureka.co/cloudcomputing
How Do These Two Environments Communicate?
SQS
Worker
Client
Web Server
Request to
the server
Server passes
request to SQS
SQS sends this message
to worker: HTTP POST
Worker responds with
HTTP Response