From b14170d441930fd2e7603d1d390fb87538ac8d4b Mon Sep 17 00:00:00 2001 From: Corey Pyle Date: Mon, 13 Jan 2025 14:38:26 -0500 Subject: [PATCH] JavaScript (v3): Textract - Revert Config file and update Readme. --- .../cross-services/textract-react/README.md | 2 -- .../textract-react/src/Config.js | 21 ++----------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/javascriptv3/example_code/cross-services/textract-react/README.md b/javascriptv3/example_code/cross-services/textract-react/README.md index 8dafbeea23f..d28d0a136b4 100644 --- a/javascriptv3/example_code/cross-services/textract-react/README.md +++ b/javascriptv3/example_code/cross-services/textract-react/README.md @@ -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 `` 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. diff --git a/javascriptv3/example_code/cross-services/textract-react/src/Config.js b/javascriptv3/example_code/cross-services/textract-react/src/Config.js index f0a4410116f..154926a399a 100644 --- a/javascriptv3/example_code/cross-services/textract-react/src/Config.js +++ b/javascriptv3/example_code/cross-services/textract-react/src/Config.js @@ -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://.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.", };