For a project I'm building multiple AWS Serverless microservices and I'm wondering about the best option for communication between different microservices.
In my project I have 2 different contexts/microservices: Orders and Returns. Both these microservices exists out of an ApiGateway + Cognito Authorizer and Lambda integrations to perform CRUD operations. When a return is requested I want to retrieve the original order for additional information from the Order microservice. The problem is that to request the information I have to provide Credentials to resolve the Authorizer.
I have been looking for a while for a solution in the form of Service accounts but it looks like that's not a feature with AWS Cognito. I also found a solution where, though the aws-sdk, you are able to call a lambda directly from within a lambda but that feels like a work around.
Hoping for some insights!