From 499fe414051e0f3baa3a87efbea6e7960f724042 Mon Sep 17 00:00:00 2001 From: Sundersingh Date: Fri, 5 Jul 2024 13:55:56 -0700 Subject: [PATCH] fix(amplify-category-api): missing custom tags --- .../amplify-table-manager-handler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/amplify-graphql-model-transformer/src/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.ts b/packages/amplify-graphql-model-transformer/src/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.ts index 8f26808433..493b712adf 100644 --- a/packages/amplify-graphql-model-transformer/src/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.ts +++ b/packages/amplify-graphql-model-transformer/src/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.ts @@ -44,7 +44,9 @@ export const getLambdaTags = async (functionArn: string): Promise[] = []; Object.keys(tags).forEach((key) => { - if (key.startsWith('created-by') || key.startsWith('amplify:')) { + // Do not include the cloudformation tags. + // These tags contain information about the lambda function and it is not necessary to include them in the tags of the table. + if (!key.startsWith('aws:cloudformation:')) { result.push({ key: key, value: tags[key],