Skip to content

Using Multiple Amplify Instances for System with Multiple Web Apps

0

This is more of a design question, would love some guidance. I am developing a system with multiple React apps using Vite. Basically I would have apps like the following

  • Home / Index
  • Account settings
  • Services

Currently I'm developing four such subapps. Again, all of these are hosted under the same domain.

My plan: Each of these apps would be under the same domain...

mydomain.com -> points to the home / index application mydomain.com/accounts points to the account application mydomain.com/service1 points to the service1 application ... etc ...

Each of these apps would be it's own Amplify instance using Cognito for authentication.

I was going to use cloudfront to do the appropriate routing / pattern matching.

Is this a good approach? Thanks!

1 Answer
2
Accepted Answer

Hello,

By default, Amplify does not support routing for this requirement natively. But as mentioned by you, you may consider using CloudFront to do the appropriate routing/pattern matching.

I found third party article which might help you. Please note that AWS does not endorse third party articles and they are shared only for your reference purposes. Alternatively, you may also consider reaching out to Solution Architect for architectural guidance on the mentioned use case.

AWS
SUPPORT ENGINEER
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.