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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则