title: how can I hook an S3 static front-end to an API?
body: <p>I want to run an S3 static website. Easy enough...</p>
  
  <p>I have built a chatbot using dialog flow which I want to connect to my website.</p>
  
  <p>In the past I have used S3 to host many static websites, but as many of you know...CORS...so now i am seeking a backend.</p>
  
  <p>So in the past I'd build a EC2 (Or wix, which allows a Node backend is pretty cool for this.) But I am having trouble finding a solution where I can pass my API calls outside of the browser. </p>
  
  <p>What is the best way to do this???</p>
  
  <p>I have experience with Lambda, API Gateway - I am guessing that one of these could be my answer. I have written a successful API in API Gateway which gets the correct 200 response and reply message back. </p>
  
  <p>I have done my due diligence and sought out an answer on stack and google, lots of questions about how to use S3 as storage, but not a lot of what I'm trying to accomplish.</p>
  
  <p>Should I ditch Dialog Flow and get on Lex? I have a lot of logic in Dialog Flow so I don't want to switch bot apps. Is there an easy way to hook up a backend for a simple post, then pass the response back to the S3 front end.</p>
  
  <p>thanks</p>