CloudBees Amazon Web Services Deploy Engine

1 minute read
CloudBees removed this plugin from the CloudBees Assurance Program (CAP) in January 2023. As an alternative to this plugin, CloudBees recommends using the AWS CLI inside the sh steps within the pipeline. Please contact CloudBees Support if you have any concerns or questions.

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

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:

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

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

  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