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

(aws_cloudfront): Distribution does not associate set certificate #32772

Open
1 task
JZechy opened this issue Jan 7, 2025 · 0 comments
Open
1 task

(aws_cloudfront): Distribution does not associate set certificate #32772

JZechy opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
@aws-cdk/aws-cloudfront Related to Amazon CloudFront bug This issue is a bug. investigating This issue is being investigated and/or work is in progress to resolve the issue. needs-reproduction This issue needs reproduction. p2

Comments

@JZechy
Copy link

JZechy commented Jan 7, 2025

Describe the bug

I was creating CloudFront Distribution with custom alternate domain with usage of a cross region certificate from us-east-1 to eu-central-1 as described in CDK docs here.

Certificate association with CloudFront distribution template is missing (only Aliases are assigned), leading to an error during stack update.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

According to CloudFormation documentation property called ViewerCertificate under DistributionConfig should be created.

Current Behavior

ViewerCertificate property is missing in DistributionConfig for existing and even new cloudfront distributions. Distribution is only created with Aliases property leading to an error during stack update, because distribution is missing reference to domain certificate.

Reproduction Steps

Create a CloudFront distribution as described in Docs here.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.174.0

Framework Version

No response

Node.js Version

22.9.0

OS

Windows 10

Language

.NET

Language Version

No response

Other information

No response

@JZechy JZechy added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 7, 2025
@github-actions github-actions bot added the @aws-cdk/aws-cloudfront Related to Amazon CloudFront label Jan 7, 2025
@khushail khushail self-assigned this Jan 7, 2025
@khushail khushail added needs-reproduction This issue needs reproduction. p2 investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cloudfront Related to Amazon CloudFront bug This issue is a bug. investigating This issue is being investigated and/or work is in progress to resolve the issue. needs-reproduction This issue needs reproduction. p2
Projects
None yet
Development

No branches or pull requests

2 participants