amplify-education / serverless-domain-manager

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

Version 6.3.3 is causing deploy problems #552

Closed BrunoStel closed 1 year ago

BrunoStel commented 1 year ago

Community Note

Bug Report

Error Description After changing the file api-gateway-v1-wrapper.ts in 6.3.3 version a problem started to happen.

Command Run sls create_domain

Console Output "Error: V1 - Make sure the 'URL do projeto' exists. Unable to create base path mapping for 'URL do projeto': Invalid stage identifier specified at APIGatewayV1Wrapper. (/app/node_modules/serverless-domain-manager/dist/src/aws/api-gateway-v1-wrapper.js:109:23) at Generator.throw () at rejected (/app/node_modules/serverless-domain-manager/dist/src/aws/api-gateway-v1-wrapper.js:6:65) at processTicksAndRejections (internal/process/task_queues.js:95:5) "

Versions

Possible Solution Rolling back to previous version solved the problem.

rddimon commented 1 year ago

Hi @BrunoStel

Could you please provide your serverless config example?

BrunoStel commented 1 year ago

Of course, here is the part that is relevant for the problem:

customDomain: basePath: "" domainName: ${self:custom.stage}-URL stage: "${self:custom.stage}" certificateName: "*.certificado" createRoute53Record: true

rddimon commented 1 year ago

Could you please try to remove the stage option from the customDomain config and let me know the status?

BrunoStel commented 1 year ago

I did it, but it didn't work, the same problem occurred. Our workaround was to downgrade de version to 6.2.0, and it worked.

rddimon commented 1 year ago

I believe I know what is the issue, will try to fix it in the next release

rddimon commented 1 year ago

519 looks like the same issue: invalid stage identifier specified