Issue when using "route53.HostedZone.fromHostedZoneId" Method #8406
Closed
Description
Reproduction Steps
When trying to import an HostedZone with :
route53.HostedZone.fromHostedZoneId(this, 'MyHostedZone', 'ID123456789')
Error Log
I've that error when launching the Stack :
HostedZone.fromHostedZoneId doesn't support "zoneName"
Environment
- CLI Version : CDK 1.42.1 (build a4797b4)
- Framework Version: 6.14.5
- Node.js Version: v12.15.0
- OS : Linux
- Language (Version): TypeScript
Other
So, I've imported that way :
route53.HostedZone.fromHostedZoneAttributes(this, 'R53Domain', {hostedZoneId: 'MyID123456789', zoneName: 'Toto'})
What's wrong with fromHostedZoneId Method ?
This is 🐛 Bug Report