Skip to content

Commit 93585a8

Browse files
Adjust browser pubsub to show cognito use (#270)
* Adjust browser pubsub sample to show that cognito is required to run the sample * remove static credential settings from settings.js in pubsub browser sample
1 parent b55ef47 commit 93585a8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

samples/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ node index.js --endpoint <endpoint> --ca_file <file> --cert <file> --key <file>
107107
This is a browser based version of the PubSub sample in JS.
108108

109109
To run the sample:
110-
1) Configure your credentials and endpoint URL in `settings.js`, you can chose to use cognito or static credentials.
110+
1) Configure your credentials and endpoint URL in `settings.js`.
111+
* You will need to setup a Cognito identity pool to run this sample. You can read how to setup a Cognito identity pool here: [AWS documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/tutorial-create-identity-pool.html).
111112

112113
2) Build the script via `npm install`
113114

samples/browser/pub_sub/settings.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
export const AWS_REGION = "<your region>";
22
export const AWS_IOT_ENDPOINT = "<your endpoint>";
3-
export const AWS_COGNITO_IDENTITY_POOL_ID = "Optional: <your identity pool id>";
4-
export const AWS_STATIC_ACCESS_KEY = "<your static access key>";
5-
export const AWS_STATIC_SECRET_ACCESS_KEY = "<your static secret access key>";
6-
export const AWS_STATIC_ACCESS_TOKEN = "Optional: <your static access token>";
3+
export const AWS_COGNITO_IDENTITY_POOL_ID = "<your cognito identity pool id>";

0 commit comments

Comments
 (0)