route53: DomainLabelEmpty error when adding certificate cname record to hosted zone #29149
Labels
@aws-cdk/aws-route53
Related to Amazon Route 53
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I'm trying to add certificate cname name and value into r53 hosted zone to validate the certificate. I know we can solve this problem by creating the certificate and hosted zone at the same time, but in our project we cant do that. Below is our code:
As you can see in the comments, when I run the code i get an error where CFN automatically appends
".test.search.acme.com"
as a suffix. FYI, if i check parameter store cname_name and cname_value, they do not have".test.search.acme.com"
appended. The values are correct(_90c9f34d5e7f23e01de3960.test.search.acme.com. and
_849ec97ff1b033b54fe424d.pmgyk.acm-validations.aws.)
It just when i pass it when creatingCnameRecord
that is when the automatic append happens.Expected Behavior
Route53 correctly creates CNAME name as '_90c9f34d5e7f23e01de3960.test.search.acme.com.
and CNAME value as
_849ec97ff1b033b54fe424d.pmgyk.acm-validations.aws.in the hosted zone and not automatically appends
.test.search.acme.com` as a suffixCurrent Behavior
Route53 incorrectly creates CNAME name as '_90c9f34d5e7f23e01de3960.test.search.acme.com..test.search.acme.com
and CNAME value as
_849ec97ff1b033b54fe424d.pmgyk.acm-validations.aws..test.search.acme.com`Reproduction Steps
View the code above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.117.0 (build 59d9b23)
Framework Version
No response
Node.js Version
v18.18.0
OS
Windows
Language
Python
Language Version
Python 3.11.5
Other information
No response
The text was updated successfully, but these errors were encountered: