serverless-toolkit icon indicating copy to clipboard operation
serverless-toolkit copied to clipboard

Serverless plugin does not honor explicit Service Name when a .twilio-functions points to a different service

Open dorkusprime opened this issue 4 years ago • 1 comments

Repro Steps

  1. Deploy a Serverless Function under any name with twilio serverless:deploy
  2. Change the name value in package.json
  3. Deploy again with twilio serverless:deploy
  4. Notice that the "Service Name" appears correct while deploying
  5. List services with twilio serverless:list
  6. 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

dorkusprime avatar May 15 '20 23:05 dorkusprime

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)

picture of dog

welcome[bot] avatar Aug 10 '20 21:08 welcome[bot]