Skip to content

Commit

Permalink
added advice how to reference existing lambda functions (#8226)
Browse files Browse the repository at this point in the history
* added advice how to reference existing lambda functions

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

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

---------

Co-authored-by: Thomas Reulen <reulen@amazon.de>
  • Loading branch information
josefaidt and Thomas Reulen authored Feb 19, 2025
1 parent 28b8d9b commit f66e83a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

</Block>
<Block name="Custom resolver powered by AppSync JavaScript resolvers">
Expand Down

0 comments on commit f66e83a

Please sign in to comment.