transitmatters/regional-rail-explorer

Remove EIP

Closed this issue · 0 comments

RRE went on AWS recently, and it's hooked up via CloudFront and EC2. The EC2 instance has a static IP address, which deploy.sh grabs and hands to Ansible.

@austinjpaul pointed out that we probably don't need the static IP, since:
a) it's still possible to connect to the instance over SSH with the dynamic hostname
b) CloudFront config is already updated automatically if the instance is replaced (causing the EC2 hostname to change)

So we might as well yank the EIP out! Tasks:

  • Remove the EIP and EIP association from devops/cloudformation.json
  • Change the end of devops/cloudformation.json to output the dynamic EC2 hostname instead of the static IP, and make sure deploy.sh is OK with that
  • Try it on beta (rre-beta.labs.transitmatters.org) first