Replies: 1 comment
-
I'm running into the same issue. For conflicting docs, see and aws-cdk/packages/aws-cdk-lib/aws-cloudfront/README.md Lines 118 to 126 in 47605c2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to follow the instructions on how to move an alias from an existing alias from one CloudFront distribution to another. The instructions says that I need to set up the target distribution with a certificate that includes the alternative domain name that I want to move: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move-create-target
However when I try to set up the distribution with the certificate but without the alternative domain names (as directed in the instructions) I run into an error
'Must specify at least one domain name to use a certificate with a distribution'
generated I think from this like of code within CDK:aws-cdk/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts
Line 323 in 6fdc458
It seems that CDK prevents me from adding a certificate unless I have a domain name; but that means I cannot follow the process for moving an alias from and old distribution to a new one.
Beta Was this translation helpful? Give feedback.
All reactions