Custom domain in Lightsail container service is not working

0

I have created a new lightsail container service. Pushed the image, and created a deployment.

It has given me a public domail url, this is working fine.

I am trying to assign a custom domain. For this, under the custom domains tab I have created a new certificate for API.MYDOMAINHERE.COM. It asked me to verify that I am the owner of the domain by entering the CNAME record name and value, which I have done in my godaddy.com account. After about 2 hours I can now see that the certificate validation completed and then I attached the certificate. The certificate status is showing as valid, in use.

At the top of the screen, below the public domain url, I can now see the custom domain url: API.MYDOMAINHERE.COM

However, when I open the url in browser it says that: This site can’t be reached

The public domain url that it provided by default (example....us-west-2.cs.amazonlightsail.com) works fine.

What could be the issue?

asked 2 years ago955 views
2 Answers
0
Accepted Answer

I had not configured the CNAME pointing the public address to the custom domain. Once I configured that, it worked.

answered 2 years ago
0

Please check your HTTPs vs HTTP. Check which port you are using. If you are using HTTPS you will need to have that certificate also uploaded into AWS ACM most likely.

Further reading if HTTPS custom domain: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-enabling-distribution-custom-domains

answered 2 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