Unable to deploy due to Output DomainName
jeremyatenovis opened this issue Β· comments
Jeremy Nicoll commented
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
When I use this plugin I can create the domain using sls create_domain
, but when I deploy I get this error:
The CloudFormation template is invalid: Template format error: Output DomainName is malformed. The Name field of every Export member must be specified and consist only of alphanumeric characters, colons, or hyphens.
I suspect this has something to do with a dash in the domain name. I can deploy regularly unless I add the following section in my config:
custom:
customDomain:
domainName: services.example-domain.com
certificateName: services.example-domain..com
basePath: ''
stage: ${sls-stage}
createRoute53Record: false
plugins:
- serverless-offline
- serverless-domain-manager
Versions
- Domain Manager version(s): 6.2.1
- Node/npm version: 16.15.1/8.11.0
- Serverless Version:
Framework Core: 3.23.0 (local) 3.23.0 (global)
Plugin: 6.2.2
SDK: 4.3.2 - Lambda Code: JavaScript
Jeremy Nicoll commented
I think this is a problem on my part. Error messages are a bit unclear, leading to this erroneous report.