Deploying BMC AMI AI Services on Amazon EC2


This topic describes how to run Ansible playbooks to deploy BMC AMI AI Services on Amazon EC2.

Before you begin

See Making-a-secure-copy-of-the-required-files-for-AWS-EC2.

To deploy BMC AMI AI Services on the Amazon EC2

  1. Connect to the newly acquired EC2 instance via SSH. Make sure that the login credentials have admin access.
  2. Install Python and its dependency on the EC2 instance, as follows:
    1. Verify whether Python is already installed by entering the python3 command. If Python is not installed, then run the following commands: 

      sudo apt update
      sudo apt install python3
    2. Install pip by using the following commands: 

      sudo apt update
      sudo apt-get -y install python3-pip
  3. Deploy the application. BMC AMI AI Services deployment consists of the following steps:
    1. BMC AMI Platform services deployment
      1. Run the following commands to deploy BMC AMI AI Platform Services: 

        chmod +x BMC-AMI-AI-Platform.sh
        sed -i -e 's/\r$//' BMC-AMI-AI-Platform.sh
        ./BMC-AMI-AI-Platform.sh
      2. When prompted, enter your EPD portal user name and the container token provided to you.
    2. Integration deployment
      1. For BMC AMI AI Code Insights Explain, run the following command:

        chmod +x BMC-AMI-AI-Devx.sh
        sed -i -e 's/\r$//' BMC-AMI-AI-Devx.sh
        ./BMC-AMI-AI-Devx.sh
      2. For BMC AMI Ops Insights Root Cause Explain, run the following command:

        chmod +x BMC-AMI-AI-OI.sh
        sed -i -e 's/\r$//' BMC-AMI-AI-OI.sh
        ./BMC-AMI-AI-OI.sh
    3. Model Deployment
      1. Run one of the following commands based on your selected configuration. Do not run all the commands. 

        Configuration type

        Command

        Recommended

        chmod +x BMC-AMI-AI-GPU.sh
        sed -i -e 's/\r$//' BMC-AMI-AI-GPU.sh
        ./BMC-AMI-AI-GPU.sh

        After running this command, enter Mixtral, or Granite, or Llama3 in the selection prompt window.

      2. When prompted, enter your EPD portal user name and the container token provided to you.

Where to go from here

Verify that BMC AMI AI Services are properly deployed on Amazon EC2. For more information, see Verifying-the-installation

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*