Uploading Photos to Amazon S3 from a Browser
Prerequisite Tasks (AWS Console)
- Create a Bucket


2. Create an Identity Pool
https://console.aws.amazon.com/cognito/.
- Manage Identity Pool
- Create new identity pool


Must choose “Javascript” from the Platform list !
3. Configure Role Permissions
https://console.aws.amazon.com/iam/
- Create policy
- Attach policy




Solution🤔? https://jynnpark.medium.com/uploading-photos-to-amazon-s3-from-a-browser-403-error-fa965e29e32b


4. Configure Bucket CORS

The Web Page (HTML, JS code)
Full code:
Tutorial Source: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-photo-album.html