You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the Apollo Server Lambda context variable be shared across Lambdas?
Our sys-ops team wants to split resolvers across lambdas so that specific lambdas are given permissions to only the resources they need e.g. a specific S3, Kinesis, Secrets Manager etc.
Our Apollo Server Lambda is currently monolithic and we assign all permissions needed across all resolvers on the one Apollo Server lambda.
I know I can use the AWS SDK to invoke another Lambda (and pass basic parameters) but then this other lambda is now outside Apollo Server so doesn't have direct access to datasources, shared database connections, user authentication/authorization data etc.
If Apollo Federation is the solution -- is it "light" enough? e.g. We might have 10 lambdas, which each one loading Apollo Server to run one small resolver function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can the Apollo Server Lambda context variable be shared across Lambdas?
Our sys-ops team wants to split resolvers across lambdas so that specific lambdas are given permissions to only the resources they need e.g. a specific S3, Kinesis, Secrets Manager etc.
Our Apollo Server Lambda is currently monolithic and we assign all permissions needed across all resolvers on the one Apollo Server lambda.
I know I can use the AWS SDK to invoke another Lambda (and pass basic parameters) but then this other lambda is now outside Apollo Server so doesn't have direct access to datasources, shared database connections, user authentication/authorization data etc.
If Apollo Federation is the solution -- is it "light" enough? e.g. We might have 10 lambdas, which each one loading Apollo Server to run one small resolver function.
Beta Was this translation helpful? Give feedback.
All reactions