From 7fd83788359750fb5d4621c72f215e71a1fe53cc Mon Sep 17 00:00:00 2001 From: Thomas Reulen Date: Wed, 27 Nov 2024 18:48:42 +0100 Subject: [PATCH 1/3] added advice how to reference existing lambda functions --- .../build-a-backend/data/custom-business-logic/index.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx b/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx index 585d0749a2f..af509d70506 100644 --- a/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx @@ -184,6 +184,8 @@ export const data = defineData({ }); ``` +If you want to use an existing lambda function, you can reference it by its name: `a.handler.function('name-of-existing-lambda-fn')`. This references an external lambda resource which Amplify is not aware of. You need to make sure the function and all dependencies are being managed outside of Amplify. + From 608a76e5e6e6ba5e84fc7203da7de14e343347c4 Mon Sep 17 00:00:00 2001 From: josef Date: Thu, 30 Jan 2025 08:24:27 -0800 Subject: [PATCH 2/3] Update src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx --- .../build-a-backend/data/custom-business-logic/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx b/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx index af509d70506..74a2a5ed62a 100644 --- a/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx @@ -184,7 +184,7 @@ export const data = defineData({ }); ``` -If you want to use an existing lambda function, you can reference it by its name: `a.handler.function('name-of-existing-lambda-fn')`. This references an external lambda resource which Amplify is not aware of. You need to make sure the function and all dependencies are being managed outside of Amplify. +If you want to use an existing Lambda function, you can reference it by its name: `a.handler.function('name-of-existing-lambda-fn')`. This references an external lambda resource which Amplify is not aware of. You need to make sure the function and all dependencies are being managed outside of Amplify. From fa83bf9a43e2713a5f872bbc228d34428f4fc879 Mon Sep 17 00:00:00 2001 From: josef Date: Thu, 30 Jan 2025 08:33:17 -0800 Subject: [PATCH 3/3] Update src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx --- .../build-a-backend/data/custom-business-logic/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx b/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx index 74a2a5ed62a..5b9bf602be7 100644 --- a/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx @@ -184,7 +184,7 @@ export const data = defineData({ }); ``` -If you want to use an existing Lambda function, you can reference it by its name: `a.handler.function('name-of-existing-lambda-fn')`. This references an external lambda resource which Amplify is not aware of. You need to make sure the function and all dependencies are being managed outside of Amplify. +If you want to use an existing Lambda function, you can reference it by its name: `a.handler.function('name-of-existing-lambda-fn')`. Note that Amplify will not update this external Lambda function or its dependencies.