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
已回答 1 年前
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南