Can't enable custom domain on Lightsail

0

I've set up the SSL Certificate but can't enable the custom domain. I get the following error:

Error AttachCertificateToDistribution[us-east-1]

Alternative Domain Names [domain.com, www.domain.com] have one or more parameter that is already associated with a different resource.

InvalidInputException

We've moved the A record to the corresponding IP and the site works, but it's not secure. Thanks.

질문됨 2년 전709회 조회
2개 답변
1

Hi rdWebDev,

As you may already know, Lightsail distribution only accepts certificates that are created in the us-east-1 region.

InvalidInputException error usually indicates that the input data in your AttachCertificateToDistribution action does not conform to the validation rules for this action. When you create the A record for your domain use your root domain (e.g, domain.com) to point to your distribution and also create a CNAME record using your subdomain (e.g. blog.domain.com) to points to your distribution. For more information on how to enable custom domain in Lightsail refer to this documentation.

I hope this will help.

Additional Resources:

  1. https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-enabling-distribution-custom-domains
  2. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html
  3. https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AttachCertificateToDistribution.html
Cebi
답변함 2년 전
0

Hi rdWebDev,

The InvalidInputException you received indicates there may be a Cloudfront distribution that is already configured with one of the domain names associated with the certificate.

The resources linked above by @Cebi will also hopefully point you in the right direction.

Thanks for using Lightsail

AWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠