Decisions AWS Container Setup
  • 13 Aug 2021
  • 2 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Decisions AWS Container Setup

  • Dark
    Light

Article summary

Overview

Decisions has the capability to integrate with different systems that are Container and Docker-based services. One of the most common services that utilizes this capability is AWS. The following document demonstrates how to configure a Decisions Image on an AWS Container.

Additional Information
For more information on the Docker Module, see Docker Module Overview.
For more on Containerization in Decissions, see Containerization Overview.

Example 

Installing on AWS
The first step in setting up the example is creating EC2 instances in AWS along with their associated RDS instances. The EC2 instances will need to be a current Windows OS and the RDS instance will need need to be for SQL Express. Then install Decisions on the EC2 instances.

For additional information on installing Decisions on AWS, see: Installing on AWS. 
  1. After installing Decisions, navigate to System > Administration > Features.
  2. Locate the Docker Module, then click DETAILS and then INSTALL.
  3. After the Module installs, restart Service Host Manager
  4. Back in Decisions Studio, navigate to System > Security > Accounts, select CREATE ACCOUNT and CREATE a new User Account. Give the Account the username "docker@decisions.com" and the password "docker". 
    Default Docker Account
    This docker account the default account that used to talk with the EC2 Instance. This can be changed in AWS if the default account is not desired.

  5. After creating the Account, create an AWS Cluster with the default configurations by navigating to Elastic Container Service > Task Definitions in the Cluster, and then selecting Create new Task Definition

  6. Declare a Task Defintion Name. Then for this example, set Task size > Task memory to "0.5GB" and Task CPU to "0.25GB" (these settings can be adapted at the users digression for their environment). 

  7. Scroll down to the Container Definitions and click Add container. Provide a Container name, add Docker Image "decisionscore/unstable:latest" to the image portion, and then configure the following fields under Environmental Variables as follows:

    SETTING_USERNAME and SETTING_PASSWORD Are Optional
    These two key's and their values are optional. If these values are not used in the configuration then decisions and the EC2 instance will use the default 'docker@decisions.com' and password 'docker'
    KeyValue
    SETTING_DATABASE_CONNECTIONRDSConnectionString
    SETTING_PORTAL_BASE_URLhttp://decisionsIPorDNSname/decisions
    SETTING_SHM_BASE_URLhttp://decisionsIPorDNSname/decisions/Primary/REST
    SETTING_USERNAMEAdminEmail
    SETTING_PASSWORDAdminPassword


  8. Select the Update button in the bottom right. 

  9. Once the container has been added, then click Create.

  10. Navigate back to the Cluster category. Click on the AWS Cluster, then click on Tasks tab and select the Task.

  11. Navigate to the Logs tab; periodically click the Refresh button on the right-side of the page until the Logs populate with the Container Status.

    Additional Information on Logs 
    Depending on the type of EC2 instance that was created it may take a little bit for the Logs to populate with the Container Status. The Logs populating is an indication that the application has started.


  12. Once the Task begins to run, ensure that the EC2 Instance is active and that the Container is displayed under System > Administration > Containers in the Studio.

  13. Access the Docker Image by inputting the URL at Internal IP Swagger.


Was this article helpful?