AWS Classroomnotes 14/Oct/2022

Deployment of Java Application to Elastic Beanstalk

  • Lets create an Elastic Beanstalk application with Java 11
  • Select Upload code and public s3 url https://referenceapplicationskhaja.s3.us-west-2.amazonaws.com/spring-petclinic-2.4.2.jar
  • Now click on create application
  • This application will be created but the health will be degraded.
  • Navigate to elastic beanstalk url we will be getting 502 Bad Gateway
  • The reason is elastic beanstalk is trying to check on port 80, but this application runs on port 8080
  • Lets configure elastic beanstalk to check on port 5000.
  • Navigate to configuration

  • Add the Environment Configuration SERVER_PORT with value 5000 and apply changes

  • Delete the Environment and application

Deployment of Tomcat application with Java 8

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%