Skip to content

Commit 7fd8378

Browse files
author
Thomas Reulen
committed
added advice how to reference existing lambda functions
1 parent 943d681 commit 7fd8378

File tree

1 file changed

+2
-0
lines changed
  • src/pages/[platform]/build-a-backend/data/custom-business-logic

1 file changed

+2
-0
lines changed

src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ export const data = defineData({
184184
});
185185
```
186186

187+
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.
188+
187189
</Block>
188190
<Block name="Custom resolver powered by AppSync JavaScript resolvers">
189191

0 commit comments

Comments
 (0)