serverless-google-cloudfunctions icon indicating copy to clipboard operation
serverless-google-cloudfunctions copied to clipboard

(Google Cloud Functions) Deploy Fails the service's name is too long ?

Open El-Fitz opened this issue 8 years ago • 3 comments

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 ^^"

El-Fitz avatar Jun 23 '17 19:06 El-Fitz

copy of https://github.com/serverless/serverless/issues/3775

El-Fitz avatar Jun 23 '17 19:06 El-Fitz

Thanks for opening in this repo @El-Fitz 👍

I agree. We should add a nice validation and error message for that!

pmuens avatar Jun 24 '17 08:06 pmuens

I ran into this issue and resolved it by changing the service value in serverless.yml to be all lowercase

stephenhandley avatar Oct 11 '17 08:10 stephenhandley