===================================== Dyanmic Website Deployment Process ===================================== 1) Create Network (VPC) 2) Create Security Groups 3) Enable Inbound Rules to allow the traffic 4) Create EC2 Instances (virtual servers) 5) Install Required Softwares to run the code Ex : Java, Tomcat, IIS 6) Create Load Balancer 7) Deploy application @@@@@ Deploy SpringBoot app in EC2 linux VM : https://youtu.be/cRQPgbwOWq0?si=Ux9Y3AY-ZTbmMmEr ### Note: When we use "AWS Elastic Bean stack" services then first 6 steps will be taken by Elastic Bean stack. We are responsible for only application deployment. ================== Elastic Beanstack ================== => End to end web application management service. => It provides platform as a service (PaaS). => AWS will provide ready made platform to run our application when we go for Beanstack. Note: Upload your code and run your application, aws will take care of infrastructure and platform to run your application. ================================ Elastic Beanstack Pricing Model ================================ => There is no additional charge for Elastic Beanstalk. => We need to pay for the resources which are created by bean stack. Ex: S3 bucket, EC2 Vm, LBR..... ================================ Lab Task on Elastic Beanstack ================================ Step-1: Create IAM Role with below 3 policies - AWSElasticBeanstalkMulticontainerDocker - AWSElasticBeanstalkWebTier - AWSElasticBeanstalkWorkerTier Ex : Role Name : aws_bean_stack_role_1 Step-2: Create Application using Beanstack Step-3: Create Environment for the application by choosing required Runtime. Ex: Java or Python or Dot Net Note: Once environment is created it will generate DNS to access our application. ==================================== Uploading Java SpringBoot rest App ==================================== @@@ Git Repo To download jar file : https://github.com/ashokitschool/Jars => Take jar file of java springboot rest app => Go to Elastic Beanstack environment and upload your jar file and give version number for your application Ex: v1.0 => Go To enviornment Properties and set SERVER_PORT as 5000 Ex : SERVER_PORT = 5000 - Select Environment - Go to Configuration - Edit "Updates, monitoring, and logging" option - Set Environment Property and apply => After environment got re-started, we can access our application by using DNS url. Note: This DNS url we can map to domain name using Route 53 service.