Skip to content

Issue when using "route53.HostedZone.fromHostedZoneId" Method #8406

Closed
@Cloudrage

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

Metadata

Labels

@aws-cdk/aws-route53Related to Amazon Route 53documentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions