Choose a suitable strategy (e.g., separate databases, shared database or combination of both) based on product use case.
Access to the database in the multi tenancy architecture is provided in three ways. Each of the following is achieved using Spring Data JPA configurations.
In IAM, role-based policies are created and linked to Cognito user groups. When a user requests access to a resource, the Lambda authorizer validates the access token to determine the user's roles. The authorizer then generates an IAM policy based on these roles, allowing or denying access accordingly, which the API Gateway enforces to control access to AWS resources.
The steps of the sign-up process are as follow