aws-samples / aws-saas-factory-serverless-workshop

MIT No Attribution
133 stars 63 forks source link

Lab 2 & 4 : Multi-tenant support does not work for more than 1 registration. #47

Open lhtan-dev opened 1 year ago

lhtan-dev commented 1 year ago

After completing lab 2 and all the steps successfully, i proceed to try to simulate a second tenant by signing up with a whole different set of fictitious account. However after multiple attempts, the "new" tenant was created but showed 122 orders & products in the dashboard of the app.

After completing lab 4, I was also not able to create a "new" tenant successfully.

Is this by design of the lab ?

brtrvn commented 8 months ago

Sorry for the delayed response @lhtan-dev - yes, this is by design simply for the limitations of the workshop experience. We wanted workshop learners to be able to transition between lab steps quickly instead of having to wait for 10-20 minutes for tenant onboarding. So, the workshop baseline only pre-provisions enough RDS infrastructure for the steps in the lab guides.

In the real world, your onboarding service would create the RDS infrastructure at runtime per tenant onboarding request. We could update this workshop to still pre-provision enough for the guided labs, but still be able to create the necessary infra at runtime for customers who would like to continue to experiment. Let us know if that's a feature you'd like.