Skip to content

Cognito Amplify Authentication Setup Instructions

Severin Ibarluzea edited this page May 16, 2020 · 4 revisions

1. Create a User Pool

Navigate to Cognito in AWS and click create Manage User Pools. Use whatever password settings are best for your organization.

user pool

2. Create an Identity Pool

Navigate to ... in AWS.

Create a new IAM role. Then review this role in IAM.

3. Create S3 Bucket

Create a bucket with public read permissions. In the "Permissions" tab, allow everyone to read and write objects to the S3 bucket.

Copy the CORs configuration from the Amplify docs.

4. Configure IAM Roles

Navigate to IAM panel by searching for the IAM service. You'll have a bunch of newly created Congito roles.

Google "Amplify Cognito S3 role", then hit getting started docs. Then you want to grab the policy under "Using Amazon S3".

Add the policy you copied with "Attach Policy" to the User Role. Make sure to replace the "example bucket name" with the name of your bucket.

Create the policy, give it a name like "UDTTestBucketRole".

Grab the "Unauth Role" from the Amplify docs, add this role to the "Unauth" user.

5. Create Example User

In Cognito page click "Create User", enter the username and password. Mark the account as verified. You'll then be prompted with Complete your Sign Up.

Clone this wiki locally