serverless-google-cloudfunctions
serverless-google-cloudfunctions copied to clipboard
Deployment status is incorrect when the function name is specified in the serverless.yml
In case we don't want to have the deployed function name with serviceName-stage-functionName pattern, and would prefer to have functionName only, we can specify the name directly in the serverless.yml.
service: my-service
provider:
name: google
stage: 'prod'
runtime: 'nodejs10'
region: us-central1
project: my-project
credentials: credentials.json
functions:
myFunction:
name: myFunction
handler: myFunction
memorySize: 128
timeout: 120s
events:
- http: path
In that case the function name will be myFunction instead of my-service-prod-myFunction, and the URL will be https://my-project-us-central1.cloudfunctions.net/myFunction instead of https://my-project-us-central1.cloudfunctions.net/my-service-prod-myFunction.
However, despite a successful and correct deployment in the GCP, at the end of the execution, it displays the following error message,
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Compiling function "myFunction"...
Serverless: Uploading artifacts...
Serverless: Artifacts successfully uploaded...
Serverless: Updating deployment...
Serverless: Checking deployment update progress...
.....................................................................
Serverless: Done...
Serverless Error ---------------------------------------
Function "Function" doesn't exist in this Service
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
@medikoo I'd like to be a contributor or maintainer for this plugin. What process i should go through ? I have huge need of using this plugin. I can't really bear the issue pending here for too long.
@IamGabrielWu great to hear that!
Just start by creating PR's and reviewing existing ones (see those that are open at this point). Seeing some history on that part we will be more than happy to provide you with full maintenance rights.
Check also https://github.com/serverless/serverless-google-cloudfunctions/blob/master/RELEASE_PROCESS.md
@medikoo thanks. I will try to work on it