Deploy web application using Amazon Elastic Beanstalk
Here, will go through how one can deploy web application using Amazon Elastic Beanstalk.
Search for Elastic Beanstalk
If you don't have any applications created before, you will get the below interface. Click on create application
Provide Application name, Platform(It supports most of the platforms like Java, Go, Node.js, PHP, Python and many more) & Code (For quick start, you can choose sample application or if you have a source code then you may upload using local file / public S3 URL ).
Here I have chosen Node.js platform and opted for sample application code.
if you want to configure more options ,then click on Configure more options :
Here, you can do below mentioned configurations :
Software
Instances
Capacity
Load balancer
Rolling updates and deployments
Security
Monitoring
Managed Updates
Notifications
Network
Database
Tags
I haven't opted for any custom configs and kept default ones only. So let's click on create application.
Now, it will create the necessary security group, target group, load balancer, etc.
Once it is completed, you will get the below message :
Environment health has transitioned from Pending to Ok. Initialization completed. Now go to all environments.
Click on your created application.
Now along with the application's necessary infra components, it has also mapped DNS for our node application. Copy that DNS(url below Mynodeapplication-env) and paste it into the browser tab.