Spring Data Collector Setup

Here we will give details about How you can create spring-data-colllector Jar file file and execute it in AWS, it’s content along the deployment steps to deploy the application into AWS.

  1. Login in your aws section.

  2. Go to on Elastic Beanstalk Section and create New Application.

    1. Give any name of application name: Spring-data-collector

    2. Platform : java, Platform branch: Corretto 8 running on 64bit Amazon Linux 2 , Platform version: 3.4.4 (Recommended)

    3. Application code : Select Upload File

    4. Source code origin: Upload from local

      1. Download the attached file and upload the spring-data-collector-1.0.2-exec.jarfile

    5. Click on Configure More OptionsButton and set Other Variables.

      1. Instances Section: Root volume Size(GB) should be greater then from 20 GB.

      2. Capacity Section: Environment type: single instance, Instance types: t2.small,t2.medium

    6. Softwire Section set environment variables:

      1. Required Environment Variable

        JAVA_TOOL_OPTIONS = "-Xms3072m -Xmx3072m" ACTIVE_PROFILE = prod JIRA_CLOUD_AUTH_ADDONKEY: datapluginweb SPRING_DATA_MONGODB = (Your Mongo DB LIKE "mongodb://admin:123456@localhost:27017/master?authSource=admin") PORT = 8088
      2. Required Environment Variable (Default all value is true)

        SCHEDULER_DATA_JIRA_CLOUD_ENABLE = true SCHEDULER_DATA_JIRA_SERVER_ENABLE = true SCHEDULER_DATA_BITBUCKET_ENABLE = true SCHEDULER_DATA_GITHUB_ENABLE = true SCHEDULER_DATA_SONAR_ENABLE = true SCHEDULER_DATA_CODESHIP_ENABLE = true SCHEDULER_DATA_TRAVISCI_ENABLE = true SCHEDULER_DATA_JENKINS_ENABLE = true
    7. After Set All things Create App button.

  3. After few minuets Application is On and Running. You can check application is running or not from log file or click on Go to environment check open page

     

  4. If showing 502 error then add port 8088 in EC2 Inbound rules.

    1. Go to EC2 Page and Find the created Instances

    2. And select Security Tab and check Inbound rules Edit the security group and add 8088 port.

    3. Update the rules.

    4. Recheck the environment url.

  5. After Running Application Data Will Fetch for your instances.

 

 

Â