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,

asked 5 years ago1568 views
4 Answers
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
answered a year ago
0

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

answered 8 months ago
0
ravi
answered 6 months ago
-1
Accepted Answer

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

answered 5 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.

Guidelines for Answering Questions