Cloud Computing

4 Mins Read

Creating an Elastic BeanStalk Application on AWS

In this article, let’s walk-through on how we can create an Elastic BeanStalk application.

Topics:

  • Why there is a need for PaaS
  • Speeding up your deadlines to launch end-to-end projects.
  • Creating a Node.js Application with AWS Elastic BeanStalk.

Why there is a need for PaaS

PaaS stands for platform as a service. Imagine all the necessary ingredients you need to prepare your Dish are always available to you and you don’t have to do any sourcing and preparation work to prepare your favorite Dish. This is exactly what PaaS offers for many software solution providers where they dont need to manage and maintain their infrastructure and just focus on creating quality code for their application.

Speeding up your deadlines to launch end-to-end projects

Paas works like a plug-n-play service to launch end-to-end projects. You can configure all the recipes required for your PaaS project and then simply forget about managing them.

Navigate to your AWS Management Console

Let’s start by navigating to your AWS Management Console. Go to the searchbox and search for BeanStalk.

Click on Create Application in your BeanStalk Dashboard

Now let’s go ahead and click on create application.

Create a Simple Node Application

Elastic BeanStalk provides sample templates for various different environments such as .Net Core, .Net on Windows Server, Docker, Go, Java, Node, PHP and other environments listed below in the image.

Configure the settings of your Node Application

Now let’s start configuring the settings of your node application. Give the application name as “node-demo-app-1”.

Configure the Platform of your Application

In this step, we need to select what Platform is required for your application. As we are going to create a Node application we will select the platform as “node.js” and platform branch will be “Node.js 16 running on 64bit Amazon Linux 2”. The platform version will be the recommended version provided by AWS.

Configure your Application Code

The code of your application is the most important part of your application. In this step we can now use a sample code provided by AWS or we can choose to upload our own application code.

For the purpose of this demo, we will go with sample code provided by AWS.

Configure any other Additional Information

In this step, Elastic Beanstalk provides us an option to configure any more additional information we want regarding our application. These settings include options such as:

Click on Create App

Once you have finalized the configuration settings of the elastic beanstalk application. Click on “create app” to start creating the application.

Provisioning your Environment

Elastic Beanstalk will now provision your environment and all configurations that you have selected will be enabled.

Health Checks on your Environment

After you click on the launch environment, health checks are performed on the Beanstalk application until the health status turns green. This notifies us that the application is ready to go.

After successful Deployment

After performing Health Checks on your environment, the application will now go online. You can open the application by using the auto-generated URL provided by Elastic Beanstalk.

Monitoring and Managing your Elastic Beanstalk Environment

After your application is live using Elastic BeanStalk you can monitor and edit any configurations from the left pane.

Editing Environment Configurations

All the configurations used by your elastic beanstalk application will be displayed in the configuration tab. Here you can edit or modify any configuration that you want to modify.

Final Output

Yippie. Your Application is live. Notice that we only configured the platform we wanted to host our application on and the rest the other things were managed by Elastic BeanStalk for us.

Conclusion

I hope the above article helped you understand the working of the AWS Elastic Beanstalk service. We can conclude from the article that Elastic BeanStalk is a Platform as a Service(PaaS) and is great for automating the provisioning of your environment so your development team can just focus on application development and not worry about provisioning and auto-scaling and configuring and maintaining your application infrastructure.

WRITTEN BY Mithilesh Dilip Tarkar

SHARE

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!