serverless-toolkit
serverless-toolkit copied to clipboard
Serverless plugin does not honor explicit Service Name when a .twilio-functions points to a different service
Repro Steps
- Deploy a Serverless Function under any
name
withtwilio serverless:deploy
- Change the
name
value inpackage.json
- Deploy again with
twilio serverless:deploy
- Notice that the "Service Name" appears correct while deploying
- List services with
twilio serverless:list
- Notice that the function was deployed to the old Service
(deploying with an explicit --service-name=
parameter produces the same result)
Extra credit:
7. rm .twilio-functions
8. twilio serverless:deploy
9. twilio serverless:list
10. Notice that the function was deployed to the new Service
Expected Result
- Serverless function deploys to the Service sent in the
package.json
name
value or via the--service-name=
parameter - If ignoring that parameter/value, the Serverless Plugin would surface an error or warning
- If ignoring that parameter/value, while deploying the Serverless Plugin UI would show the actual Service name being deployed to
Actual Result
- Serverless functions deploy to the first Service configured, regardless of name sent
- Serverless Plugin does not surface an error or warning
- While deploying the Serverless Plugin UI shows the input Service Name rather than the actual Service name being deployed to
Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible. While you are waiting...here's a random picture of a corgi (powered by dog.ceo)