Wildcard subdomains in AWS Amplify

1

So we recently decided to remove server side rendering from our react app to use Amplify, since it provides us all that we need (serverless, high availabilty, speed and no need to test in two different environment setups).

However now I have a question regarding how to configure AWS Amplify to have a wildcard CNAME record. I want that any subdomain can reach my app, not just the ones I manually select in the Amplify Console.

I have a wildcard CNAME pointing to the cloudfront, and the subdomains I added manually in the console are working, but the ones that are not (due to the nature of the wildcard CNAME), just get a 403 from cloudfront.

Is there support for wildcard subdomains in Amplify? How does one configure it? Assuming there is no support for this. Is there an API I can use to create the Amplify subdomains for me?

Thanks,

질문됨 5년 전1580회 조회
4개 답변
2

Four years later, the wildcards are still not available. The ability to configure wildcard subdomains is crucial for the proper functioning and scalability of my application. It allows me to dynamically create subdomains for each tenant, providing a personalized and isolated environment. Unfortunately, the absence of this feature hinders my ability to fully leverage the potential of AWS Amplify for my application's requirements. This enhancement would greatly benefit developers like myself who rely on the platform for multi-tenant applications or any use case that necessitates dynamic subdomain creation. I understand that implementing wildcard subdomain support may involve technical considerations, such as DNS configuration and security concerns. However, this feature has become a standard requirement in modern web applications, and its absence limits the scalability and flexibility of AWS Amplify for a significant number of use cases.

Tecnofy
답변함 일 년 전
0

So, today exists another solution? Anybody help me? Thanks!

답변함 8달 전
0
ravi
답변함 6달 전
-1
수락된 답변

We don't support wildcard subdomains right now. You can programmatically add records by using AWS CLI.
https://docs.aws.amazon.com/cli/latest/reference/amplify/create-domain-association.html

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠