How to setup multi-tenant backend with AWS Amplify?

0

How can I set up a multi-tenant backend with Amplify that supports both tenants (customers) and user roles (admin, normal user, etc.) within each tenant? I have explored the use of Cognito User Groups, but it only gets me one of the two. Namely, I can get multi-tenancy by customer, but not customer and user roles. Or, user role, but not user role and customer. As far as I understand, this is due to @auth rules being logically OR-red.

Ultimately, I am looking for a solution like this, but I am not sure how to realize it with Amplify.

Any help is much appreciated!

trcdev
已提問 9 個月前檢視次數 588 次
1 個回答
0

Try creating the Cognito user pool first as desired (tenancy group and role group) then use it in Amplify and link it to that user pool rather than starting from scratch?

profile pictureAWS
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南