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,

preguntada hace 5 años1580 visualizaciones
4 Respuestas
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
respondido hace un año
0

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

respondido hace 8 meses
0
ravi
respondido hace 6 meses
-1
Respuesta aceptada

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

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas