Skip to content

Commit

Permalink
JavaScript (v3): Textract - Revert Config file and update Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpyle0819 committed Jan 13, 2025
1 parent daaa6e9 commit b14170d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ documents like medical records, financial reports, and tax forms.

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

1. Replace `<DOMAIN>` in in the `LoginUrl` value of `./src/Config.js` with the domain created for the Cognito user pool.

1. Add additional assets needed for the example by running the `AddRemoveAssets.js`
script with the `add` option and pass the stack name you used in the previous step.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export const Config = {
StackName: "textract-react",
DefaultImageName: "default_document_3.png",
CognitoIdentityPoolId: "us-east-1:e831f5d1-3bb1-4c38-80a6-ac4a41094e16",
CognitoUserPoolId: "us-east-1_d0mAaaf9U",
DeployRegion: "us-east-1",
SNSTopicArn:
"arn:aws:sns:us-east-1:901487484989:textract-react-textractcognitodemotopicEEA53D4C-kScOieHI8JEs",
DefaultBucketName:
"textract-react-textractcognitodemobucket90cf6a3d-ido8j5smr8wg",
CognitoId: "cognito-idp.us-east-1.amazonaws.com/us-east-1_d0mAaaf9U",
LoginUrl:
"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",
RoleArn:
"arn:aws:iam::901487484989:role/textract-react-textractcognitodemotextractrole79875-Og6cWz9azWMs",
QueueUrl:
"https://sqs.us-east-1.amazonaws.com/901487484989/textract-react-textractcognitodemoqueue80660218-RrlFxsn3Hr4a",
ConfigError:
"Demo resources not initialized. You must deploy AWS resources and demo elements before running this application. See the README for details.",
};

0 comments on commit b14170d

Please sign in to comment.