How To Deploy Sample NodeJS Application With AWS Elastic Beanstalk
Get link
Facebook
X
Pinterest
Email
Other Apps
-
🤔What IsElasticBeanstalk?
AWS Elastic Beanstalk is a fully managed service that simplifies the deployment and management of applications in the AWS Cloud.
In simple way AWS Elastic Beanstalk is a powerful tool for deploying and managing web applications in the AWS Cloud.
🤑What Are Key Benefits Of Using Beanstalk?
Easy to Use: simply upload your application and Elastic Beanstalk automatically handles the provisioning, load balancing, scaling, and application health monitoring.
Support Multiple Languages: Elastic Beanstalk supports applications developed in Go, Java, .NET, Node.js, PHP, Python, and Ruby.
Customizable: You can change the configuration as needed.
Cost: There is no charge for using Elastic Beanstalk. You pay only for the AWS resources that your application is using.
🚀How To Deploy Application on Elastic Beanstalk?
First, it`s mandatory to have access to the AWS management console. If you have an AWS account so you are ready to start the journey of Elastic Beanstalk.
For a deep understanding follow this AWS official documentationhere📍The following steps will guide you through deploying a web application on AWS Elastic Beanstalk. Let`s Start……..
1. Open the Elastic Beanstalk Page
Go to AWS Console → Search for the Elastic Beanstalk → Click on Elastic Beanstalk from dropdown. Great!! Now you will see following page.
2. Create Environment and Deploy our Application
In this demo we will just choose mandatory options to setup an environment for Sample Nodejs Application.
If I sign on the box title with 🔴 that means the full box options, you could leave default. If I sign any option with 🟢means that option is mandatory or you must edit it according to your needs.
🟢Mandatory/ Edit it
🔴Leave Default
🟢We choseWeb Server Environmentbecause we are deploying sample web application of python. This option can be used for serving HTTP request for websites, web applications and web APIs
🟢Worker Applicationthis option can be used for creating separate worker environment tier.
🟢Managed Platformmeans it will be maintained and managed by AWS Elastic Beanstalk automatically.
🟢Platformmeans in which programming language runtime environment we want to run our application. we can also choosePlatform version.
🔴Application Code:here we can upload our app code from local machine or can get from S3 bucket. we are usingsample appcode which will be managed AWS Elastic Beanstalk.
🔴Presets:here we can choose our instances with deferent configurations or can create our custom.
🟢Use an existing service rolemeans the IAM Role which is already present with all mandatory permissions. If there is now existing role then you can chooseCreate and use new service roleoptions, it will create new role with all mandatory permissions.
🔴ChooseEC2 key pairIf you wanna SSh into instance in the future. its not mandatory.
🟢EC2 Instance Profilemeans a role with use case EC2 and which have all the mandatory permissions. choose existing/default role , in case there is no any existing/default role. you can create role by following demo which is at the last of this blog.⬇️
That`s it, for Sample Application purpose these things are enough. now just click onSkip and reviewbutton at the last of the page. after clicking on button, you will be redirected to the following page review all the things and click onSubmit buttonat the last of the page.
✋Wait for 3–4 minutes. after 3–4 minutes you will seeOk health statusanddomain nameof our application. now click on thedomain name.
→ After click on domain name you will see following our application page in the browser.Congrats🎉 you have deployed Sample NodeJS application with AWS Elastic Beanstalk.
🧹Cleaning Up
Go toAWS Elastic Beanstalk Console→: Click onApplicationfrom left side menu →: Select our Application by checking box → Click onActionmenu → Click onDelete Application→ you can see following box → type our app name → Click onDelete
❔Elastic Beanstalk FAQs
1. Who should use AWS Elastic Beanstalk?
Those who want to deploy and manage their applications within minutes in the AWS Cloud.
2. Which Operating Systems Does AWS Elastic Beanstalk Use?
AWS Elastic Beanstalk runs on the Amazon Linux AMI and the Windows Server AMI.
3. What Kinds Of Applications Are Supported By Aws Elastic Beanstalk?
AWS Elastic Beanstalk supports Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker, and it is best for web applications. and non-web applications can also be deployed using Elastic Beanstalk.
📌Create IAM Role For EC2 Instance Profile
→ To create an IAM Role for EC2 instance profile selection
Go to IAM console
In the IAM console navigation pane, choose Roles.
Choose Create role.
Under Trusted entity type, choose AWS service.
Under Use case, choose EC2.
Choose Next.
Attach the appropriate managed policies. Scroll in the View instance profile permissions modal window to see the managed policies. The policies are also listed here:
How to Set up a Java application built with Maven on AWS Elastic Beanstalk Java, Maven, Elastic Beanstalk, IAM, S3, EC2 Author: Ujwal Pachghare Hello friends, In this tutorial we will deploy Java Application which we build with Maven build tool and then deploy on AWS Elastic Beanstalk. Step-1: Delete Unsupported IAM Roles Step-2: Create new aws-elasticbeanstalk-ec2-role Step-3: Create S3 Bucket For Storing Artifact Step-4: Create EC2 Instance for Building Artifact Step-5: Create Application in Elastic Beanstalk Step 6: clean up Note:- AWS Elastic Beanstalk has been facing issue related to IAM EC2 Role and to resolve that issue we have to follow respective instruction that are provided by AWS experts. Step-1: Delete Unsupported IAM Roles Navigate to IAM console → Select Role from left menu 2. search for aws-elasticbeanstalk-service-role in the search bar → Click on Delete button → Delete it 3. Search for aws-elasticbeanst...
Dockerizing Application On AWS: A Practical Guide to Real-Time Implementation Author: Piyush Lokhande(Senior DevOps Engineer) Key Interview Inquiry : Q: “There is one application we want to deploy on AWS. Could you explain the steps on how to do that briefly?” Docker is a platform designed to make it easier to create, deploy, and run applications using containers. Containers allow a developer to package up an application with all the parts it needs, such as libraries and other dependencies, and ship it all out as one package. Step 1 : First create an Ec2 instance with a configuration with as per your organization’s requirement (AMI, SG, Key, VPC, Volume, etc) Step2: Finally create your instance. Step 3: Connect your instance with the cmd/putty terminal. successfully connected with cmd. Step 4: Run the below commands on below terminal for installation of the docker. sudo yum update - y sudo yum install docker - y sudo service docker start sudo usermod - aG docker...
Deploy Super-Mario in Production Ready K8s Environment with Kops. Author: Ujwal Pachghare In this tutorial, we will walk through the process of deploying a Mario game on Kubernetes (k8s) nodes. This includes creating the necessary manifests, applying them, and testing the deployment. In the previous tutorial we have deployed Super-Mario game in docker with the help of multi container manager docker compose and inspection technique. if your interested you follow this tutorial “Deploy Super-Mario on Docker with Docker Compose by using Inspecting Technique” here . In this tutorial the only prerequisite is to have fully setup a Kubernetes cluster with Kops. if you wanna learn how to setup highly available local Kubernetes cluster with Kops, you can follow this tutorial “Setting Up Local Kubernetes Cluster with Kops” here . Step 1: Confirm Kubernetes Setup In the previous tutorial we learn that ap-south-1c availability zone doesn`t support k8s dep...
Comments
Post a Comment