route53: CloudFormation-Validate::E3029 false positive on HTTPS records alias for CloudFront distributions
Describe the bug
CloudFormation-Validate::E3029 is reported on an HTTPS record with alias for CloudFront distribution.
Stack:
declare const distribution: cloudfront.Distribution;
declare const zone: route53.HostedZone;
new route35.HttpsRecord(this, 'HTTPS', {
zone,
target: route53.RecordTarget.fromAlias(new route53_targets.CloudFrontTarget(distribution)),
});WARNING AliasTarget: AliasTarget cannot be used with record type 'HTTPS' (CloudFormation Validate) ... aws-cdk-lib.aws_route53.CfnRecordSet Acknowledge with 'CloudFormation-Validate::E3029'
But HTTPS records support alias for CloudFront distributions since Jul 1, 2025. For details, see https://aws.amazon.com/blogs/networking-and-content-delivery/boost-application-performance-amazon-cloudfront-enables-https-record/
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version
2.261.0
Expected Behavior
No issues should be reported.
Current Behavior
See above.
Reproduction Steps
See above.
Possible Solution
No response
Additional Information/Context
HTTPS records support alias only for CloudFront distributions. Aliasing other resources, such as ALBs, should be still warned.
AWS CDK Library version (aws-cdk-lib)
2.262.1
AWS CDK CLI version
2.1133.0 (build 712d792)
Node.js Version
v24.18.0
OS
Linux
Language
TypeScript
Language Version
No response
Other information
No response
Source: aws/aws-cdk