(aws_cloudfront): Distribution does not associate set certificate #32772
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
Describe the bug
I was creating CloudFront Distribution with custom alternate domain with usage of a cross region certificate from
us-east-1
toeu-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
Last Known Working CDK Version
No response
Expected Behavior
According to CloudFormation documentation property called
ViewerCertificate
underDistributionConfig
should be created.Current Behavior
ViewerCertificate
property is missing inDistributionConfig
for existing and even new cloudfront distributions. Distribution is only created withAliases
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
The text was updated successfully, but these errors were encountered: