I have multiple Lambda functions connected to the same ApiGateway and also some Auth triggers for a custom authentication flow.
At the moment im only accessing the GraphQL in one specific Lambda Function, but now I need to access it from another Function and also the Auth triggers.
I noticed that in the docs it show how to do it: https://docs.amplify.aws/react/build-a-backend/data/customize-authz/grant-lambda-function-access-to-api/#access-the-api-using-aws-amplify but its a solution that works per function and I know it has an alert about it.
Im wondering if there is a better way to generate the GraphQL files onces and maybe use the Amplify configure per functions. Otherwise I would need to have a bunch of duplicated content per function to be able to access the same GraphQL.
Thanks in advance