Closed kaotu closed 1 year ago
I have the same issue
I am getting the following error:
Error:
Unable to create base path mapping for '
': Invalid stage identifier specified
I am setting the following config:
customDomain:
domainName: ${self:custom.domainName}
basePath: ""
certificateName: ${self:custom.domainCert}
createRoute53Record: true
stage: ${opt:stage, "test"}
endpointType: 'regional'
apiType: http
//TEMPORARY WORKAROUND I have downgraded this dependency to v6.2.1 in my project. And it's working perfectly fine now.
I am getting the following error:
Error:
Unable to create base path mapping for '
': Invalid stage identifier specified I am setting the following config:
customDomain: domainName: ${self:custom.domainName} basePath: "" certificateName: ${self:custom.domainCert} createRoute53Record: true stage: ${opt:stage, "test"} endpointType: 'regional' apiType: http
//TEMPORARY WORKAROUND I have downgraded this dependency to v6.2.1 in my project. And it's working perfectly fine now.
Hi @varad11
You need to remove the stage
option from the customDomain
config
The stage value will be inherited from the serverless options or service.provider.stage here is a code
In the latest release we added support for the custom stage for HTTP API
In the AWS documentation it's no clear how it should work As I see that feature will cause more problems then help here so we may need to revert changes
Hi @rddimon, Checked the latest version. That particular error is not reoccurring. Also I didn't remove the "stage" field in customDomain. Thanks for the prompt changes and release.
Community Note
Bug Report
Error Description Unable to use getApiMappings function in ap-southeast-3 (Jakarta region) because this function had used the apiGatewayV2. Link issue #537
Command Run
Console Output
Domain Manager Configuration Replace this with your own
serverless.yml
file (anonymized, of course) to help us better resolve your issue.Versions
Possible Solution
We will add a parameter for defines the api gateway version, which accepts v1 or v2. The default is v2.
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.