Using subdomain with Lightsail Containers

0

I have an existing domain e.g., example.com for a different purpose outside AWS and I want to use a subdomain and connect it to a Lightsail container e.g., mycontainer.example.com

Is it possible? I can only see an option for using a root/apex domain.

crsdev
demandé il y a 3 ans702 vues
2 réponses
0

Hello,

I believe you can accomplish this by creating a CNAME record in your example.com domain that maps "mycontainer.example.com" to your container service's public domain. It would look something like:

mycontainer CNAME foo.guid.region.cs.amazonlightsail.com

(where "foo.guid.region.cs.amazonlightsail.com" is replaced by your container service's public domain URL).

I hope this helps. Thank you for using Amazon Lightsail!

Best,
Max

Maxwell
répondu il y a 3 ans
0

@MaxwellAtAWS

Thanks that is right however there's one more thing to do that wasn't clear in the UI. I eventually found out that you first need to add TLS certificates for your root domain before the option to add subdomains will come up. So this means that even if you're not going to use your root domain, a TLS certificate must still be created for it, before you can add subdomains.

crsdev
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions