Documentation - Revature-RPM/Launch-Testing-Service GitHub Wiki

JAVA - MAY 19 (USF)

Launch and Testing Service Configuration

August 14, 2019

Product Overview

The purpose of this document is to describe how to setup the Launch and Testing service of the RPM project. Prerequisites

  1. Have an AWS account.
  2. Create a user in the Identity and Access Management (IAM) section of the AWS console. We should allow this user access to the following groups:
  • AmazonEC2FullAccess
  • AmazonS3FullAccess
  1. Obtain the access key ID and secret access key. These values should be provided in the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
  2. Create an S3 bucket (make sure you keep the bucket name because this will be needed in the application.yml. Environment Variables

The following environment variables need to be defined in order to be able to run the service:

  • AWS_ACCESS_KEY_ID (access key ID)
  • AWS_SECRET_ACCESS_KEY (secret access key)
  • AWS_REGION (Depending on the region where the S3 bucket is going to be located)

How to run: Right now, this is still a Proof of Concept and hasn’t yet been integrated into the RPM project. To run this using Postman, follow the following steps.

  1. Spin up the Launch-Testing-Service on your IDE (make sure you get the Arrow green)
  2. Open up Postman and make a POST request to localhost:9090/deployment
  3. The following details are required as Body parameters
  • projectId
  • gitHubUrl
  • pomLocation
  • connVariables This takes the projects environment variables (URL, USERNAME, PASSWORD)
  • envVariables
  • sqlScript

For more information, follow the link below https://docs.google.com/document/d/1wwOwbRwZacCETPGSH-Dl6AsRMJF7dXXD_sURS4T-Huk/edit?usp=sharing