> For the complete documentation index, see [llms.txt](https://huy312100.gitbook.io/software-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huy312100.gitbook.io/software-development/cloud-service/aws/certificate/clf-c02/cloud-technology-and-services/deploying-and-managing-infrastructure/elastic-beanstalk.md).

# Elastic Beanstalk

### Overview

* Elastic Beanstalk is a developer-centric view of deploying an application on AWS
* It uses all the components we’ve seen before: EC2, ASG, ELB, RDS, etc...
* But it’s all in one view that’s easy to understand!
* We still have full control over the configuration
* Beanstalk = Platform as a Service (PaaS)
* Beanstalk is free but you pay for the underlying instances
* Managed service
  * Beanstalk handles instance configuration / OS
  * Deployment strategy is configurable but performed by Elastic Beanstalk
  * Capacity provisioning
  * Load balancing & auto-scaling
  * Application health-monitoring & responsiveness
* Just the application code is the responsibility of the developer
* Three architecture models:
  * Single Instance deployment: good for dev
  * LB + ASG: great for production or pre-production web applications
  * ASG only: great for non-web apps in production (workers, etc..)

• Support for many platforms:

* Go
* Java SE
* Java with Tomcat
* .NET on Windows Server with IIS
* Node.js
* PHP
* Python
* Ruby
* Packer Builder
* Single Container Docker
* Multi-Container Docker
* Preconfigured Docker
* If not supported, you can write your custom platform

### Health Monitoring

• Health agent pushes metrics to CloudWatch

• Checks for app health, publishes health events

<figure><img src="https://1722711354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwNXdoUkfmcozr29fRrfb%2Fuploads%2FebQL7vtIUCNhihARYT1J%2FScreenshot%202023-12-23%20at%2015.02.02.png?alt=media&amp;token=fa0d7481-66da-4881-85e0-8a2d64263d9e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1722711354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwNXdoUkfmcozr29fRrfb%2Fuploads%2FvANc9gJ6Dl1YROqFTs3M%2FScreenshot%202023-12-23%20at%2015.02.53.png?alt=media&amp;token=6a8fccaa-bb78-4708-b6e6-117cecc99fb4" alt=""><figcaption></figcaption></figure>
