amplify-education / serverless-domain-manager

Serverless plugin for managing custom domains with API Gateways.
MIT License
941 stars 232 forks source link

Unable to deploy due to Output DomainName #530

Closed jeremyatenovis closed 2 years ago

jeremyatenovis commented 2 years ago

Community Note

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

jeremyatenovis commented 2 years ago

I think this is a problem on my part. Error messages are a bit unclear, leading to this erroneous report.