Skip to content
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

Failed to find hosted zone when there are more than 100 HZs #510

Closed
mrcrowl opened this issue Jul 20, 2022 · 0 comments · Fixed by #513
Closed

Failed to find hosted zone when there are more than 100 HZs #510

mrcrowl opened this issue Jul 20, 2022 · 0 comments · Fixed by #513
Labels

Comments

@mrcrowl
Copy link

mrcrowl commented Jul 20, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Bug Report

Error Description
When an AWS account has more than 100 hosted zones, the command, e.g.

sls create_domain --stage prod --region eu-west-2

... fails with Error: Could not find hosted zone "{ OUR.DOMAIN.NAME.HERE }"

Command Run
e.g. sls create_domain --stage prod --region eu-west-2

Console Output

Error ---------------------------------------------------
 
  Error: Unable to create domain tabs.prod.eu-west-2.hungrycoder.net: Could not find hosted zone "{ OUR.DOMAIN.NAME.HERE }"
      at ServerlessCustomDomain.<anonymous> (/Users/Ben.Crowl/dev/tabs/node_modules/serverless-domain-manager/dist/src/index.js:190:23)
      at Generator.throw (<anonymous>)
      at rejected (/Users/Ben.Crowl/dev/tabs/node_modules/serverless-domain-manager/dist/src/index.js:6:65)
      at processTicksAndRejections (internal/process/task_queues.js:95:5)

Domain Manager Configuration
Replace this with your own serverless.yml file (anonymized, of course) to help us better resolve your issue.

custom:
  customDomain: 
    domainName: OUR.DOMAIN.NAME.HERE

Versions

  • Domain Manager version(s): v6.0.3
  • Node/npm version: v14.18.1 / v8.11.0
  • Serverless Version: v2.72.3
  • Lambda Code: TypeScript

Possible Solution
The following lines need to get paged results (node_modules/serverless-domain-manager/dist/src/aws/route53-wrapper.js)

            try {
                const hostedZoneData = yield (0, utils_1.throttledCall)(this.route53, "listHostedZones", {});
                hostedZones = hostedZoneData.HostedZones;
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant