serverless-components / express

⚡ Take existing Express.js apps and host them easily on cheap, auto-scaling, serverless infrastructure (AWS Lambda and AWS HTTP API).
https://serverless.com/components
Apache License 2.0
375 stars 34 forks source link

Support for templatized function names #71

Open Ubunfu opened 3 years ago

Ubunfu commented 3 years ago

Is there support for customizing the names of functions the express component deploys to include metadata like stage name, etc?

The DynamoDB component supports that by doing something like below - adding a name input field that you can use to override the database name using variables from runtime, as described here. It doesn't appear that this component currently exposes a name input variable that we can manipulate like this?

Doing this:

component: aws-dynamodb
name: pf-user-database
inputs:
  name: ${name}-${stage}
...

Provisions this: image