title: How do I add auth to and deploy my React app with lambda api?
body: <p>I have locally working code for a React front-end application, hooked up to a <a href="https://www.serverless.com/" rel="nofollow noreferrer">serverless framework</a> lambda back-end (which in turn accesses S3 and RDS). I'm now at the stage where I need to add user authentication to both the front and back-end, as well as deploy my solution.</p>
  <p>I have cobbled together a Cloudfront distribution and s3 static hosting for the React portion, with the api available as a secondary origin on <code>/api/*</code>, however this solution seems awkward, and I'm not sure it helps me tackle auth.</p>
  <p>Other guides that I've found suggest AWS-Amplify, or <a href="https://serverless-stack.com/chapters/what-is-sst.html" rel="nofollow noreferrer">SST</a>, but I have no experience with either.</p>
  <p>Am I close to a well-structured roll-your-own solution, or completely on the wrong track? I'm happy to spend a little longer on a clean and future-proof solution, but am not adverse to side-stepping to a well respected tool.</p>