title: Connecting an AWS Amplify frontend with a EC2 instance?
body: <p>So, I'm working on a hackathon project right now, and for the demo, I've spun up a NodeJS Express server on an EC2 via Elastic Beanstalk. When testing the server's API with our front-end locally, it worked perfectly fine.</p>
  <p>Now we've deployed our front-end to AWS Amplify, setup a domain name in Route53, and hooked everything up. When we go to the domain, our front-end looks great, but when we try using the functionality that would connect to our server's API, we get a <code>net::ERR_SSL_PROTOCOL_ERROR</code>.</p>
  <p>Doing some research, it looks like(?) that we have to setup a certificate on the Classic Load Balancer that's in front of the EC2. So I requested a certificate, and created a listener on the Load Balancer as follows:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Load Balancer Protocol</th>
  <th>Load Balancer Port</th>
  <th>Instance Protocol</th>
  <th>Instance Port</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>HTTPS</td>
  <td>443</td>
  <td>HTTPS</td>
  <td>3000</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>But now I realize that if setup this way, I still have no idea how to point the React Frontend's API calls to the Load Balancer instead of the EC2, or whether the listener is setup correctly. Would anyone have an idea of what steps we should take here?</p>
  <p>For the details of the app, the backend is a pretty straightforward Express App with CORS enabled, and the frontend is a fairly standard React project, nothing special about either of them.</p>