express icon indicating copy to clipboard operation
express copied to clipboard

API Gateway Creates Duplicate Names For Different Stages

Open AndrewBarba opened this issue 4 years ago • 2 comments

Currently the same name is used for the API Gateway API regardless of the stage being deployed. This makes it a lot more difficult to select the production/development API when digging through the AWS console.

It would be great to suffix the stage in the actual name of the API to make browsing the console a lot easier.

Another option would be to use the name provided in the input as described here: https://github.com/serverless/components#variables

AndrewBarba avatar Jul 29 '20 14:07 AndrewBarba

That sounds reasonable 👌

eahefnawy avatar Aug 10 '20 12:08 eahefnawy

+1 would love to be able to set inputs.name in serverless.yml

Currently getting the following error:

Invalid Component Types: url-shortener-express: Invalid Input: "name" is not allowed - Documentation: https://github.com/serverless-components/express

gjgd avatar Jan 03 '21 14:01 gjgd