|
1 | 1 | # Running AmazonKinesisVideoStreaming Sample |
2 | 2 |
|
3 | | -More information: [https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producer-sdk-android.html](https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producer-sdk-android.html) |
| 3 | +## 1. Provision and setup |
4 | 4 |
|
5 | | -## 1. Create a user pool |
6 | | - * Go to https://console.aws.amazon.com/cognito/ |
7 | | - * Click `Manage your User Pools` |
8 | | - * Click `Create a user pool` |
9 | | - * Fill-in `Pool name` |
10 | | - * Click `Review defaults` |
11 | | - * Click `Create user pool` |
12 | | - * Copy `Pool Id` :clipboard: |
13 | | - * Select `App clients` in the left nav. |
14 | | - * Click `Add an app client` |
15 | | - * Fill-in `App client name` |
16 | | - * Click `Create app client` |
17 | | - * Click `Show details` and copy `App client id` and `App client secret` :clipboard: |
18 | | - *  `-->`  |
| 5 | +Follow the documentation to provision the AWS resources required to run this sample, and assign the appropriate permissions to the IAM role: [https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producersdk-android-prerequisites.html](https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producersdk-android-prerequisites.html) |
19 | 6 |
|
20 | | -## 2. Create an identity pool |
21 | | - * Go to https://console.aws.amazon.com/cognito/ |
22 | | - * Click `Manage Federated Identities` |
23 | | - * Click `Create new identity pool` |
24 | | - * Fill-in `Identity pool name` |
25 | | - *  |
26 | | - * Under the heading `Authentication providers`, in the `Cognito` tab, fill-in the `User Pool Id` and `App client id` from the user pools step. |
27 | | -  |
28 | | - * Click `Create create` |
29 | | - * There will be details for 2 roles. Look at the one for `authenticated identities` and click `Edit` next to the policy document and your policy should look like this: |
30 | | - ``` |
31 | | - { |
32 | | - "Version": "2012-10-17", |
33 | | - "Statement": [ |
34 | | - { |
35 | | - "Effect": "Allow", |
36 | | - "Action": [ |
37 | | - "cognito-identity:*", |
38 | | - "kinesisvideo:*" |
39 | | - ], |
40 | | - "Resource": [ |
41 | | - "*" |
42 | | - ] |
43 | | - } |
44 | | - ] |
45 | | - } |
46 | | - ``` |
47 | | - * Click `Allow` |
48 | | - * Copy the `Identity Pool Id` from the code snippets on the screen. :clipboard: |
| 7 | +* Amazon Cognito user pool |
| 8 | +* Amazon Cognito identity pool |
49 | 9 |
|
50 | | -## 3. Paste |
51 | | - * You will need all the information from the above steps that have :clipboard: and paste them into this file on your local copy [awsconfiguration.json](src/main/res/raw/awsconfiguration.json). Here's what it should look like when you're done: |
| 10 | +## 2. Paste |
| 11 | + * You will need all the information from the step above that you have obtained, and paste them into your local copy of [awsconfiguration.json](src/main/res/raw/awsconfiguration.json). Here's what it should look like when you're done: |
52 | 12 | ```json |
53 | 13 | { |
54 | 14 | "Version": "1.0", |
|
0 commit comments