Amazon Web Services Elastic Beanstalk

You can deploy your Java applications to Amazon Web Services Elastic Beanstalk using Jenkins. Although Amazon Web Services Elastic Beanstalk supports multiple languages, the CloudBees deployer only supports Java at this time.

Getting Started with Amazon Web Services Elastic Beanstalk

To get started, do the following:

  1. In the Update Center, navigate to Manage JenkinsManage plugins to enable the two new plugins to support Elastic Beanstalk deployment, which you will find under Available plugins:

    eb plugins

  2. Then, use the Manage JenkinsManage Credentials options and add your AWS credentials. Start by identifying the type of credentials you’re adding:

    aws credentials

  3. Provide the necessary keys to Jenkins so you will be able to access AWS Elastic Beanstalk:

    configure credentials

  4. Finally, for any job that produces a standard WAR file deploying to Tomcat, use Configure Jenkins, and as a post-build action, choose Elastic Beanstalk as the Host Service for the CloudBees Deployer:

    aws host service

  5. Select the AWS credentials that you provided earlier, and configure any parameters associated with the deployment:

configure aws elastic beanstalk

Deploying the App to Elastic Beanstalk

Once you configure the job, the app deploys to AWS Elastic Beanstalk as a post-build step. Below is an example of a sample job deploying:

running eb deployment

Below is an example of the sample application running:

example eb app