No hosted zone found with ID error when deploying

Viewed 1154

I am using aws-cdk to create my infrastructure. I'm using using the following code to lookup my hosted zone:

const zone = route53.HostedZone.fromLookup(this, 'Zone', { domainName: domainName });

When I deploy, I get the following error

Failed to create resource. No hosted zone found with ID:xxxxxxxxxxx

I have only one hosted zone in route-53 and the ID which the above error is displaying isn't the ID of my Hosted zone. Not sure where it is getting this value from.

0 Answers
Related