Tutorial: Creating an Identity Pool - Amazon Cognito

Tutorial: Creating an Identity Pool

With an identity pool, your users can obtain temporary AWS credentials to access AWS services, such as Amazon S3 and DynamoDB.

To create an identity pool

  1. Go to the Amazon Cognito console. You may be prompted for your AWS credentials.

  2. Choose Manage Identity Pools

  3. Choose Create new identity pool.

  4. Enter a name for your identity pool.

  5. To enable unauthenticated identities select Enable access to unauthenticated identities from the Unauthenticated identities collapsible section.

  6. Choose Create Pool.

  7. You will be prompted for access to your AWS resources.

    Choose Allow to create the two default roles associated with your identity pool–one for unauthenticated users and one for authenticated users. These default roles provide your identity pool access to Amazon Cognito Sync. You can modify the roles associated with your identity pool in the IAM console.

  8. Make a note of your identity pool Id number. You will use it to set up policies allowing your app users to access other AWS services such as Amazon Simple Storage Service or DynamoDB

For more information on identity pools, see Amazon Cognito Identity Pools (Federated Identities).

For an S3 example using an identity pool see Uploading Photos to Amazon S3 from a Browser.