Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
knightdna opened this issue Jul 2, 2020 · 3 comments

Comments

@knightdna
Copy link
Contributor

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
knightdna added a commit to knightdna/serverless-google-cloudfunctions that referenced this issue Jul 2, 2020
knightdna added a commit to knightdna/serverless-google-cloudfunctions that referenced this issue Jul 2, 2020
@ishallbethat
Copy link

@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
Copy link
Contributor

medikoo commented Jul 2, 2020

@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
Copy link

@medikoo thanks. I will try to work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants