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