Linn Linn Htun
Linn Linn Htun
AvatarLinn Linn Htun

Elastic Beanstalk

August 7, 2023

Elastic Beanstalk

AWS Elastic Beanstalk is a Platform-as-a-Service (PaaS) that makes it easy to deploy, manage, and scale web applications without managing the underlying infrastructure. This post covers how to create and deploy applications using Elastic Beanstalk, supported platforms, environment configuration, and when to use it versus managing EC2 directly.

Elastic Beanstalk

 

Go Elastic BeanStalk > click create application btn > choose Web Server environment > put application name > put environment name> choose managed platform> choose Platform as you like > choose application code> choose Single instance > click Next button

 

Step 2

 

Service access > choose Create and use new service role > 

 

 

Go IAM> roles > click create role button > choose AWS service > choose EC2> click Next button> Add permissions > Search beanstalk > check AWSElasticBeanstalkWebTier, AWSElasticBeanstalkWorkerTier,  AWSElasticBeanstalkMulticontainerDocker> click Next button > put role name aws-elasticbeanstalk-ec2-role> click create role button

 

choose Create and use new service role > EC2 instance profile > choose aws-elasticbeanstalk-ec2-role that created in above> click skip to review button> click submit button

 

 

After create successfully > go EC2 instance and check> is running 

 

 

Frequently Asked Questions

What is AWS Elastic Beanstalk?

AWS Elastic Beanstalk is a fully managed PaaS that automatically handles infrastructure provisioning, load balancing, auto-scaling, and application monitoring — you just upload your code and Beanstalk deploys it.

When should you use Elastic Beanstalk vs EC2 directly?

Use Elastic Beanstalk when you want to focus on writing code without managing infrastructure; use EC2 directly when you need fine-grained control over the underlying servers, networking, or when running specialized workloads not supported by Beanstalk.