shouldStartNameWithService ignored for HTTP API gateway #9631
Comments
|
Hello Does that clarify the problem? |
|
It does clarify the problem, but the current behaviour where the naming is different between HTTP and REST gateways is far from perfect...don't you think? The global default is to put |
|
Hello @IlyaSemenov - to be honest I wasn't aware that we have this same inconsistency for HTTP API - I was under impression that it was "mixed up" for REST API only. Given that, the setting that we have for REST API has became a bit problematic, as at first we wanted to migrate to that convention fully, but that would require redeployments of existing API Gateways which might be not desirable for a lot of people running in production. @medikoo, what do you think about exposting similar property for |
|
@pgrzesik I'm taken by surprise as well (especially that I've implemented Anyway in light of that, we're totally open to add support for |
|
Hey there. Could I get this one as my first issue here? |
|
@thiagomr definitely. We look forward the PR! |
|
@medikoo thanks, I'll send it soon! |
For HTTP API gateways,
provider.apiGateway.shouldStartNameWithServiceis ignored. The API gateway is always named asstage-service.Expected
With
shouldStartNameWithServiceenabled, HTTP API gateway is named asservice-stage.serverless.ymlserverless deployoutputInstalled version
The source of problem is clearly seen, for REST API this flag is taken into account:
serverless/lib/plugins/aws/lib/naming.js
Lines 251 to 260 in d7c39f0
and for HTTP API it is not:
serverless/lib/plugins/aws/lib/naming.js
Lines 647 to 656 in d7c39f0
The text was updated successfully, but these errors were encountered: