From bd0ca410a7160dd095a3d033b1e5346a96d90a75 Mon Sep 17 00:00:00 2001 From: Anil Maktala Date: Thu, 22 Aug 2024 14:25:16 -0400 Subject: [PATCH 1/3] fixed file path --- .../build-a-backend/graphqlapi/troubleshooting/index.mdx | 2 +- .../[platform]/tools/cli-legacy/searchable-directive/index.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx b/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx index 7e3b4a7cef2..285377e3844 100644 --- a/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx +++ b/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx @@ -48,7 +48,7 @@ If you're running into the error above during `amplify push`, it is likely that When you add `@searchable` to a `@model` type with existing data, then you need to backfill the OpenSearch index. Download the following Python script to help you backfill your OpenSearch index: -[DynamoDB to OpenSearch backfill script](https://raw.githubusercontent.com/aws-amplify/amplify-category-api/main/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) +[DynamoDB to OpenSearch backfill script](https://raw.githubusercontent.com/aws-amplify/amplify-category-api/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) The script creates an event stream of your DynamoDB records and sends them to your OpenSearch Index. Execute the script with the following parameters to initiate the backfill: diff --git a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx index 8a74332537f..39d55a75f28 100644 --- a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx +++ b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx @@ -201,7 +201,7 @@ Learn more about Amazon OpenSearch Service instance types [here](https://docs.aw ### Backfill your OpenSearch index from your DynamoDB table -The following Python [script](https://github.com/aws-amplify/amplify-category-api/blob/main/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) creates an event stream of your DynamoDB records and sends them to your OpenSearch Index. This will help you backfill your data should you choose to add `@searchable` to your @model types at a later time. +The following Python [script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) creates an event stream of your DynamoDB records and sends them to your OpenSearch Index. This will help you backfill your data should you choose to add `@searchable` to your @model types at a later time. **Example of calling the script**: From e7967d5b727c5aef9af72dd6c38b416103ba6380 Mon Sep 17 00:00:00 2001 From: Anil Maktala Date: Thu, 22 Aug 2024 14:27:29 -0400 Subject: [PATCH 2/3] fixed file path --- .../[platform]/tools/cli-legacy/searchable-directive/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx index 39d55a75f28..929ab013ac3 100644 --- a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx +++ b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx @@ -38,7 +38,7 @@ export function getStaticProps(context) { The `@searchable` directive handles streaming the data of an `@model` object type to the Amazon OpenSearch Service and configures search resolvers that search that information. -> **Migration warning**: You might observe duplicate records on search operations, if you deployed your GraphQL schema using CLI version older than 4.14.1 and have thereafter updated your schema & deployed the changes with a CLI version between 4.14.1 - 4.16.1. Please use this Python [script](https://github.com/aws-amplify/amplify-category-api/blob/main/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) to remove the duplicate records from your OpenSearch cluster. [This script](https://github.com/aws-amplify/amplify-category-api/blob/master/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) indexes data from your DynamoDB Table to your OpenSearch Cluster. View an example of how to call the script with the following parameters [here](https://aws-amplify.github.io/docs/cli-toolchain/graphql#example-of-calling-the-script). +> **Migration warning**: You might observe duplicate records on search operations, if you deployed your GraphQL schema using CLI version older than 4.14.1 and have thereafter updated your schema & deployed the changes with a CLI version between 4.14.1 - 4.16.1. Please use this Python [script](https://github.com/aws-amplify/amplify-category-api/blob/main/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) to remove the duplicate records from your OpenSearch cluster. [This script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) indexes data from your DynamoDB Table to your OpenSearch Cluster. View an example of how to call the script with the following parameters [here](https://aws-amplify.github.io/docs/cli-toolchain/graphql#example-of-calling-the-script). > **Billing warning**: `@searchable` incurs an additional cost depending on instance size. For more information refer to the [Amazon OpenSearch service pricing](https://aws.amazon.com/elasticsearch-service/pricing/). From 5615e35ea4849b598ea68dbaf8069dc3958e8410 Mon Sep 17 00:00:00 2001 From: Anil Maktala Date: Thu, 22 Aug 2024 14:28:37 -0400 Subject: [PATCH 3/3] fixed file path --- .../[platform]/tools/cli-legacy/searchable-directive/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx index 929ab013ac3..d0133e5b0ea 100644 --- a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx +++ b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx @@ -38,7 +38,7 @@ export function getStaticProps(context) { The `@searchable` directive handles streaming the data of an `@model` object type to the Amazon OpenSearch Service and configures search resolvers that search that information. -> **Migration warning**: You might observe duplicate records on search operations, if you deployed your GraphQL schema using CLI version older than 4.14.1 and have thereafter updated your schema & deployed the changes with a CLI version between 4.14.1 - 4.16.1. Please use this Python [script](https://github.com/aws-amplify/amplify-category-api/blob/main/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) to remove the duplicate records from your OpenSearch cluster. [This script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) indexes data from your DynamoDB Table to your OpenSearch Cluster. View an example of how to call the script with the following parameters [here](https://aws-amplify.github.io/docs/cli-toolchain/graphql#example-of-calling-the-script). +> **Migration warning**: You might observe duplicate records on search operations, if you deployed your GraphQL schema using CLI version older than 4.14.1 and have thereafter updated your schema & deployed the changes with a CLI version between 4.14.1 - 4.16.1. Please use this Python [script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) to remove the duplicate records from your OpenSearch cluster. [This script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) indexes data from your DynamoDB Table to your OpenSearch Cluster. View an example of how to call the script with the following parameters [here](https://aws-amplify.github.io/docs/cli-toolchain/graphql#example-of-calling-the-script). > **Billing warning**: `@searchable` incurs an additional cost depending on instance size. For more information refer to the [Amazon OpenSearch service pricing](https://aws.amazon.com/elasticsearch-service/pricing/).