From 7fd83788359750fb5d4621c72f215e71a1fe53cc Mon Sep 17 00:00:00 2001 From: Thomas Reulen Date: Wed, 27 Nov 2024 18:48:42 +0100 Subject: [PATCH] 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. +