DEV Community

Cover image for Application Deployment with AWS Elastic Beanstalk
Tolulope Adeleke
Tolulope Adeleke

Posted on

Application Deployment with AWS Elastic Beanstalk

What is AWS Elastic BeanStalk ?

AWS Elastic Beanstalk is a fully managed service by Amazon Web Services, offering a simplified approach to deploying, managing, and scaling web applications. Developers can effortlessly upload their code, and Elastic Beanstalk takes care of tasks like infrastructure provisioning, load balancing, and application health monitoring. It supports various programming languages and platforms, automatically scales based on demand, and integrates seamlessly with other AWS services like CloudWatch, RDS, and S3.

Elastic Beanstalk environments can be easily managed, supporting multiple stages like development, testing, and production. Its integration with various AWS services offers a comprehensive ecosystem for application deployment. Developers can achieve a balance between ease of use and customization, ensuring their applications run efficiently at scale.

Let's create an elastic beanstalk using these basic steps;

Step 1:

Navigate the Console, locate the search bar and type AWS elastic beanstalk.

Image description

Step 2:

Click on Create application, on the left panel, click on Applications

Image description

Step 3:

Enter the name of your application on the Application Information Page.

Then Click Create to initiate the application creation process.

Image description

Image description

Step 4:

Now proceed to set up an environment by Navigating to the left hand , click on Environment

Image description

Step 5:

Now we configure the environment

Environment tier -Choose the Web Server Environment

Application Name - Then name your environment .

Platform - Managed Platform

Choose PHP as your platform and leave others with the default recommended. Then Click next to proceed

Image description

Image description

Image description

Step 6:

Configure service access

Click on Use an existing Service role.

If you click on EC2 Instance at this point it is not updated, so we need to work on this.

Image description

Step 7:

Open Console on a new tab and choose the IAM to assign roles

Image description

Image description

Step 8:

  • Use Case - Ec2
  • Add permissions to AWS Elasticbeanstalkwebtier _ Give a Role name

Image description

Image description

Image description

Step 9:

Proceed to click Create role . Role Created

Image description

Image description

Step 10:

Configure Network Settings

  • Under the VPC section, Choose the default recommended .
  • Choose an availability zone.
  • Click Next to proceed

Choose the default recommended for everything then proceed to submit

Image description

Image description

Step 11:

Click “Submit” to launch the environment.
Verify the success message on the page.

Image description

Image description

Step 12:

Copy the domain link provided and paste it in your web browser.

Image description

Yayyyy...You have successfully created a PHP app using AWS Elastic Beanstalk.

Step 13:

Now we verify if our instance is running and resources.

Image description

Image description

Well done Mate !

Top comments (0)