-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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-route53: (BREAKING!) Imported Route53 zone attribute and/or type mismatch #26872
Comments
Hi @einstein-aws , could you please share the complete code snippet for reproducing this issue? TIA. |
Hi @khushail. This is literally the code I am using. Here is the excerpt from my stack:
|
Hi @einstein-aws , I used one of the import methods and tried to reproduce the issue but my code is succeeding. Please see here- |
@einstein-aws , the |
@khushail It is a string, just a label. But, here is a hardcoded string: ...and here is import using |
@einstein-aws , Yes, you are correct (my bad, forgot to check the version changes). This is a change in the latest version which was released yesterday. Looking at this PR, it looks like the changes in Marking this issue as P2. Community PRs are welcome. |
@khushail Thank you! I hope this will be fixed soon :) |
…dZone anymore (#26888) `Identity.publicHostedZone` takes an `IPublicHostedZone`, but because of TypeScript structural typing it would also accept an `IHostedZone`. When in [this PR](#26333) the `grantDelegation` method was added to the `IPublicHostedZone` interface, this passing was no longer allowed and code that used to work on accident, no longer works. For example: ``` const zone = HostedZone.fromHostedZoneId(stack, 'Zone', 'hosted-id'); const sesIdentity = ses.Identity.publicHostedZone(zone); ``` It raises an error because the imported `zone` does not implement the `grantDelegation` method. This fix moves the `grantDelegation` method declaration into the `IHostedZone` interface and makes it available to all imported zones. Closes #26872. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the bug
Seems like after the latest CDK update to v2.93.0 I am having trouble with importing Route53 hosted zones. I tried:
and when I tried:
I am getting:
Expected Behavior
Either of the above imports should work.
Current Behavior
Getting error:
Reproduction Steps
Try to use either of the above Route53 zone imports in:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
v2.93.0
Framework Version
No response
Node.js Version
v18.12.0
OS
MacOS Ventura 13.4.1
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: