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