BettrData: Fixing the Script Issue Testing

Reference

BettrData Instance Install Instructions

Steps

These set of steps are used to create a Bettrdata instance in AWS, using the fix in the branch:

  • feature/ENG-1084/infrastructure-updates-2.5.0

The steps are not straightforward, but have some steps done locally and done on the created instance via cloudformation. The steps are

  1. Locally change directory to the location ~/workspace/bettrdata-infra
  2. Make sure you are on branch, feature/ENG-1084/infrastructure-updates-2.5.0
$ git checkout feature/ENG-1084/infrastructure-updates-2.5.0
$ git pull
  1. Change directory to bettrdata.io/env
  2. Go through the steps to create the cloudformation instance as noted in BettrData Instance Install Instructions
    1. Add UUID to Lambda
    2. Run Create of Cloudformation, in this particular example:
    3. $ ./create.sh robpoc3 2bcaf08c-30f1-48d4-a985-cd64d14c3159 t3.large 50 false false
  3. Have someone (Aaron) add my ssh key to the new instance
  4. SSH into the instance and sudo to bettrdata
$ ssh ec2-user@robpoc3
Last login: Tue Oct  8 17:51:21 UTC 2024 on pts/0
$ sudo su bettrdata
  1. You should now be in the bettrdata project folder
  2. Using git, change the branch of the project from master to feature/ENG-1084/infrastructure-updates-2.5.0
  3. $ git checkout feature/ENG-1084/infrastructure-updates-2.5.0
  4. From your local machine, now do the steps to install the dockers using ansible
  5. Change to ansible directory
    1. cd ~/workspace/bettrdata-infra/ansible/
  6. Add the host to the inventory//hosts file
    1. Under all > children > manged > hosts
    2.         robpoc3.bettrdata.io:
                  ansible_host: 100.71.139.50
  7. Add the application to the local /etc/hosts file
  8.         100.71.139.50   robpoc3.bettrdata.io
  1. Run the ansible-playbook script
  2. $ ansible-playbook playbooks/new-platform.yml -l robpoc3.bettrdata.io