serverless-domain-manager: A Record (Alias) not being created

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 The custom domain is created and mapped to my API Gateway but the needed A Record in Route 53 is not being created.

Command Run sls deploy

Console Output No errors reported

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

customDomain:
    domainName: my-domain.com
    stage: ${self:provider.stage}
    apiType: rest
    basePath: v1
    certificateName: my-cert
    createRoute53Record: true
    endpointType: regional

Versions

  • Domain Manager version(s): 4.1.1
  • Node/npm version: Node 12
  • Serverless Version: 1.73.1
  • Lambda Code JavaScript

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 18

Most upvoted comments

We are running into a problem which may be the same or at least related. The key is this:

Serverless: Custom domain my.domain.com already exists.

If the API gateway custom domain already exists, it will not check if the Route53 already exists and not try to create it if it doesnโ€™t

The answer is in API Gateways -> Custom Domain. I deleted this custom domain, and ran sls create_domain again, hoping it will set the correct routes and allโ€™ll be well. (Edit: it did.)

Feature suggestion: check if BOTH custom domain AND route53 is configured correctly.

@corydorning53 can you provide an execution log with export SLS_DEBUG=* set?