serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
272 stars 127 forks source link

Deployment status is incorrect when the function name is specified in the serverless.yml #224

Open knightdna opened 4 years ago

knightdna commented 4 years ago

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
ishallbethat commented 4 years ago

@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.

medikoo commented 4 years ago

@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

ishallbethat commented 4 years ago

@medikoo thanks. I will try to work on it