Skip to content

Commit b14170d

Browse files
committed
JavaScript (v3): Textract - Revert Config file and update Readme.
1 parent daaa6e9 commit b14170d

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

javascriptv3/example_code/cross-services/textract-react/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ documents like medical records, financial reports, and tax forms.
6666

6767
The stack is deployed when it reports a StackStatus of CREATE_COMPLETE.
6868

69-
1. Replace `<DOMAIN>` in in the `LoginUrl` value of `./src/Config.js` with the domain created for the Cognito user pool.
70-
7169
1. Add additional assets needed for the example by running the `AddRemoveAssets.js`
7270
script with the `add` option and pass the stack name you used in the previous step.
7371

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
// SPDX-License-Identifier: Apache-2.0
3-
41
export const Config = {
5-
StackName: "textract-react",
6-
DefaultImageName: "default_document_3.png",
7-
CognitoIdentityPoolId: "us-east-1:e831f5d1-3bb1-4c38-80a6-ac4a41094e16",
8-
CognitoUserPoolId: "us-east-1_d0mAaaf9U",
9-
DeployRegion: "us-east-1",
10-
SNSTopicArn:
11-
"arn:aws:sns:us-east-1:901487484989:textract-react-textractcognitodemotopicEEA53D4C-kScOieHI8JEs",
12-
DefaultBucketName:
13-
"textract-react-textractcognitodemobucket90cf6a3d-ido8j5smr8wg",
14-
CognitoId: "cognito-idp.us-east-1.amazonaws.com/us-east-1_d0mAaaf9U",
15-
LoginUrl:
16-
"https://<DOMAIN>.auth.us-east-1.amazoncognito.com/login?client_id=4mnjju6vbc48jn4vtqgi7ug8d&response_type=token&scope=aws.cognito.signin.user.admin+email+openid+phone+profile&redirect_uri=http://localhost:3000",
17-
RoleArn:
18-
"arn:aws:iam::901487484989:role/textract-react-textractcognitodemotextractrole79875-Og6cWz9azWMs",
19-
QueueUrl:
20-
"https://sqs.us-east-1.amazonaws.com/901487484989/textract-react-textractcognitodemoqueue80660218-RrlFxsn3Hr4a",
2+
ConfigError:
3+
"Demo resources not initialized. You must deploy AWS resources and demo elements before running this application. See the README for details.",
214
};

0 commit comments

Comments
 (0)