Creating Elastic Beanstalk Environment
we will deploy the Web Application directly to Elastic Beanstalk which is pre-created by the AWS
1. Go to AWS management console from the Service menu click on Elastic Beanstalk
2. all the environments are shown on this page and it shows the existing BeanStalk application
Here we need to remember one thing if the health of the environment is not in green color then it is not reading wait for few moments it will change
In some real situations, we choose blue and green. for green, we represent that it is active for the blue environment we represent it as underdevelopment or testing
4. on top of the page Click on the URL the link ends with the elastic beanstalk
when you click on the URL a new browser tab opens it displays HTTP Status 404 - Not Found this is expected because it doesn't run any application on the server
5. Now we need to deploy a sample application to Elastic Beanstalk for the sample application we can download it on AWS use the Below link to download the sample application
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/samples/tomcat.zip
6. now open your Elastic Beanstalk and click on upload and deploy
7. upload the file that you have download to Elastic Beanstalk.
8. click deploy, it takes few moments to deploy the application.
8. after completing deployment, click on the URL on top of the screen
9. the web application that you deploy shows
10. the web application was successfully deployed
11. now click on the configuration it shows everything which is attached to the Elastic Beanstalk Ec2 Security group, and root volume, most important Amazon ec2 Instances which and what type of the instance and we can add Database in this at present any Database because this environment doesn't include Database
12. now go services and click on Ec2 instances there you can see Ec2 instance created for the web application using Elastic Beanstalk and in the security group port 80 is open to allow inbound traffic
13. Auto Scaling also created in case if any traffic increases the Auto Scaling group increases the ec2 instance to maintain high availability, load balance also created along with the Auto Scaling to distribute the traffic