title: How to host a static s3 website with cloudfront that uses cognito built in login pages
body: <p>I am beginner to aws. I want to host a static S3 website with cloudfront distribution but I want to add the cognito built in login page first when user hit the website url.I am not sure how to do that. I am seeing multiple solutions for S3 + cloudfront or cognito but I am not getting any solution as to how to integrate S3 website + cloudfront + cognito bult in page.
  Can someone please suggest how to do that?
  Thanks in advance!</p>