Prerequisites
Last updated
Last updated
The front-end source code available here. I am using Vanilla JavaScript so that it would be easy for anyone to get started. I will put the followup updates on React and Angular in the future.
Copy the front-end code to an S3 bucket in your account. Make sure you Do not block public acccess
of the bucket. Once the code is moved, apply the Public Read policy as mentioned below.
WebApp Bucket Policy for Public Access
Create another S3 bucket to store all the file uploads. Update the CORS configurations for the files bucket as per below.
Keep your files buckets as private and secure. You can block public access of the bucket to make sure no accidental configuration override.
Files Bucket CORS Configuration
Make sure you create Web Hosting and Document Storage buckets in the same region.
If you open the application in your browser now, it will show that the Cognito Pool and Client is not configured.