Skip to content

Commit a4b1198

Browse files
ThomasReulenThomas Reulen
and
Thomas Reulen
authored
added advice how to reference existing lambda functions (#8136)
Co-authored-by: Thomas Reulen <[email protected]>
1 parent 2520a82 commit a4b1198

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)