首页 > 解决方案 > 多租户 b2b 无服务器应用程序中每个租户的自定义子域

问题描述

我们正在计划一个多租户 b2b 无服务器应用程序。每个租户都有一个 Cognito 池,但有一个池化 DynamoDB。应用程序前端也将由一个通用的 S3 存储桶提供服务。

当新用户加入时,我们将为租户、身份池和角色配置用户池。新记录也将添加到 DDB。同时,我们需要为这个用户创建一个自定义子域,它将为来自 s3 的应用程序提供服务。

-> I understand I could just add *.example.com but it will intercept garbage subdomains as well that are not connected to any user.
 
-> Also, it seems as if subdomain mapping has to be through CloudFront, which is fine but does CloudFront allow to point any number of subdomains to a distribution/s3 bucket

我们正在使用无服务器框架,它是一个无服务器应用程序。有人可以引导我完成实现这一目标的过程吗?或分享任何例子。

标签: amazon-web-servicesdnsmulti-tenantserverlessamazon-route53

解决方案


推荐阅读