Deploying a WAR file from Jenkins to AWS Beanstalk
AWS Elastic is a Platform as a Service (PaaS). We will use it to deploy the application. These are the steps you need to follow to deploy an application on AWS Elastic Beanstalk:

Getting ready
Let's create a sample application in Elastic Beanstalk to understand how Elastic Beanstalk works. Then, we will use the Jenkins plugin to deploy an application into it.
Click on Services
in the AWS console and select AWS Elastic Beanstalk. Create a new application named petclinic
. Select Tomcat
as a Platform
and select the Sample application
radio button:

Verify the sequence of events for the creation of a sample application:

It will take some time and, once the has been created, it will be highlighted in green:

Click on the petclinic
environment and verify Health
and Running Version
in the dashboard:

Verify the ID and URL. Click on the URL
and verify the default page:

How to do it...
- Install the Elastic Beanstalk Publisher plugin. For more details, visit...