BettrData App Other Notes

Addendum

Updating A Recreated EC2 Instance

If you need to recreate the same cloudformation, so steps need to be made to update items previously set

  1. Aaron added did something in tailscale to fix the issue
  2. Get the new ip address for robpoc in tailscale
    1. tailscale status
    2. 100.114.98.4    robpoc               tagged-devices linux   idle, tx 5448 rx 5144
  3. Remove the old registration for the instance from local ~/.ssh/authorized_keys
    1. Ssh into EC2 instance to add it automatically to the authorized_keys file
    2. ssh ec2-user@robpoc
  4. Update the id_rsa.pub key in the ~/workspace/bettrdata-infra/ansible/resources/authorized_keys if not already there
  5. Update the item in the ~/workspace/bettrdata-infra/ansible/inventory/hosts file
  6.         robpoc.bettrdata.io:
                ansible_host: 100.114.98.4
  7. Update the ssl key if needed
    1. Make sure these two files have your updated host information
      1. ~/workspace/bettrdata-infra/ansible/resources/authorized_keys
      2. ~/workspace/bettrdata-infra/ansible/inventory/hosts
      ansible-playbook playbooks/ssl-update.yml -l robpoc.bettrdata.io