Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFront Fails to create #72

Open
darey-io opened this issue Dec 12, 2019 · 4 comments
Open

CloudFront Fails to create #72

darey-io opened this issue Dec 12, 2019 · 4 comments

Comments

@darey-io
Copy link

I keep getting this error each time it reaches the Cloudfront resource creation stage.

Embedded stack arn:aws:cloudformation:eu-west-1:4891:stack/Wordpress-cloudfront-BWS8W/6a02b0-1ce6-11ea-9d0b-02 was not successfully created: The following resource(s) failed to create: [CloudFrontDistributionSslCertificate].

I ensured the Certificate in ACM is created in the N.Virginia region and it has been validated against my domain with an "Issued" status

Could i be doing something wrong? Anyone came across this?

@sxmxc24
Copy link

sxmxc24 commented Dec 12, 2019

Are you sure the certificate covers the alternate CNAMEs to include www.test.com and test.com

@cosminzeev
Copy link

I get the same error and the certificate covers both www and non www

@pratikdhody
Copy link

@sxmxc24 @cosminzeev I ran into the same issue.
When creating the certificates, I needed to define the domain name as *.yoururl

@duttonw
Copy link

duttonw commented Feb 16, 2020

When Associating Domains to Cloudfront and an SSL cert to go with them, you must ensure you have all alt names matching whats on your Cloudfront Alternate Domain Names (CNAMEs). Else it will be rejected. Its one of those policies AWS put in place to stop people associating random domains to their distribution for sub-domain take over see EdOverflow/can-i-take-over-xyz#29 (comment) why this is the case and also why you can't have no ssl on random domain name with cloudfront any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants