Usando AWS re:Post, accetti AWS re:Post Termini di utilizzo

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.

posta 2 anni fa905 visualizzazioni
2 Risposte
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
con risposta 2 anni fa
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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande