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!

1 Antwort
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
beantwortet vor 9 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen