(Google Cloud Functions) Deploy Fails the service's name is too long ?
This is a (Bug Report)
Description
- sls deploy failed on "Creating Deployment" when the service name was long (WSLeadsIntakeDexi and WS-LeadsIntake-Dexi), but not when it was short (efoz)
- Maybe it can't take such names (provider limitations), but in this case it would be nice to state the service's name constraints on failure (and explicit them in the getting started too) instead of letting us brute / random-force a valid name :-)
Additional Data
- Serverless Framework Version you're using: 1.15.2
- Operating System: macOS 10.12.4
- Stack Trace:
Serverless: Packaging service... Serverless: Compiling function "first"... Serverless: Creating deployment...
Error --------------------------------------------------
Error: Invalid value for field 'resource.name': 'sls-WebsitesLeadsIntakeDexi-dev'. Name of the resource 'sls-WebsitesLeadsIntakeDexi-dev' is not valid
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Forums: forum.serverless.com Chat: gitter.im/serverless/serverless
Your Environment Information ----------------------------- OS: darwin Node Version: 7.2.0 Serverless Version: 1.15.2
- Provider Error messages: ? Where do I get this ?
Sorry for taking this long ^^"
copy of https://github.com/serverless/serverless/issues/3775
Thanks for opening in this repo @El-Fitz 👍
I agree. We should add a nice validation and error message for that!
I ran into this issue and resolved it by changing the service value in serverless.yml to be all lowercase