aws-samples / aws-saas-factory-ref-solution-serverless-saas

MIT No Attribution
448 stars 147 forks source link

AppSync with temp creds from Authorizer lambda #59

Closed joa44741 closed 1 year ago

joa44741 commented 1 year ago

Hey,

I want to use your ref-solution but I wondered if I could get rid of some lambda functions in my project and instead use AppSync with DynamoDB directly. Is it possible that AppSync could forward the generated temporary credentials for the tenant (from the Authorizer Lambda) to the DynamoDB call?

Best regards

anubhavynr commented 1 year ago

It will not be possible with direct integration using DynamoDB resolver. But you should be able to use the tenant id directly from context to make the get call inside the resolver.

ujwalbukka commented 1 year ago

Closing this issue. Please reopen if you still have any issues/questions.