- Go to https://console.aws.amazon.com/cognito/
- Click
Manage your User Pools
- Click
Create a user pool
- Fill-in
Pool name
- Click
Review defaults
- Click
Create user pool
- Copy
Pool Id
📋 - Select
App clients
in the left nav. - Click
Add an app client
- Fill-in
App client name
- Click
Create app client
- Click
Show details
and copyApp client id
andApp client secret
📋
- Go to https://console.aws.amazon.com/cognito/
- Click
Manage Federated Identities
- Click
Create new identity pool
- Fill-in
Identity pool name
- Under the heading
Authentication providers
, in theCognito
tab, fill-in theUser Pool Id
andApp client id
from the user pools step. - Click
Create create
- There will be details for 2 roles. Look at the one for
authenticated identities
and clickEdit
next to the policy document and your policy should look like this:{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "cognito-identity:*", "kinesisvideo:*" ], "Resource": [ "*" ] } ] }
- Click
Allow
- Copy the
Identity Pool Id
from the code snippets on the screen. 📋
- You will need all the information from the above steps that have 📋 and paste them into this file on your local copy awsconfiguration.json
- Change the region that the app will stream to by editing the
KINESIS_VIDEO_REGION
constant in your local copy of KinesisVideoDemoApp.java