From a4b1198a257fb9ff33b43550505670682c7b13ba Mon Sep 17 00:00:00 2001 From: Thomas Reulen <51262387+ThomasReulen@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:56:04 +0100 Subject: [PATCH] added advice how to reference existing lambda functions (#8136) Co-authored-by: Thomas Reulen --- .../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. +