12/3/2023 0 Comments Aws toolkit for eclipse![]() So how can we leverage the CodeDeploy service to ease this process? What would be even better is to have the ability to save this specific deployment task into some configurable format, and make it easily repeatable in the future. Without the help of CodeDeploy, you would need to ssh into each of the instances and manually run the command, which is a tedious and time-consuming process. To solve this problem, you will need to run `sudo service httpd stop` on every EC2 instance before the Java web app is deployed. This happens because the Amazon Linux AMI pre-bundles a running Apache HTTP server that has occupied the 80 port which our Tomcat server also attempts to bind to. Instead it shows the “Amazon Linux AMI Test Page”. To view the full deployment history of a deployment group, we can visit the deployment group detail page via AWS Explorer View -> AWS CodeDeploy -> DemoApplication -> Double-click DemoFleet.įor some of you who have been following the walkthrough, it’s possible that you might not see the sample JSP page when accessing the EC2 endpoint. If the deployment fails during any of the events, you can click View Diagnostics to see the error code and the log output from your command script.Īfter the deployment completes, your application will be available at ec2-public-endpoint} You can double-click on any of the instances to open the detailed view of each lifecycle event. ![]() Then just click Finish to initiate the deployment.Īfter the deployment starts, you will be prompted by a dialog that tracks the progress of all the deployments on individual EC2 instances. Here we select deploying to server root and using the default HTTP port 80. We will explain later how the AppSpec template is defined and how you can add your custom templates. The template accepts parameters including the context-path of the application and the port number that the Tomcat server will listen to. At this moment, you should see only one predefined template, Tomcat 7 running on Linux. This AppSpec template includes the lifecycle event commands that spin up a Tomcat 7 server on your EC2 instances and deploy your application to it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |