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

Custom name for Google Cloud Function #152

Open
peric opened this issue Feb 28, 2019 · 4 comments
Open

Custom name for Google Cloud Function #152

peric opened this issue Feb 28, 2019 · 4 comments

Comments

@peric
Copy link

peric commented Feb 28, 2019

Custom name for Google cloud functions

Description

For AWS lambda, it is possible to set custom name for a Lambda function (https://serverless.com/framework/docs/providers/aws/guide/functions/, line 14 in the example).

I want to be able to do the same with google provider, where config will look something like this:

functions:
  handler:
    handler: Handler
    name: BackupHandler
    memorySize: 256
    timeout: 300s

There are multiple reasons why this can be useful:

  • better (and more descriptive) naming of google cloud functions. e.g. if you have multiple cloud functions in the same project, some are written in python and some in golang, you'll end up with names like backup_handler and BackupHandler
  • if you have a package named backup, golint recommends you have a function named Handler and not BackupHandler. But if you deploy Handler to google cloud, it's just not descriptive enough
@cirdes
Copy link

cirdes commented Apr 9, 2019

There are two PR related to that one #97 and #98
that have been open almost one year ago.

I have 3 stages (dev, staging, production) and because of the entry point and function name share the same name I can't have 3 different functions. If I deploy with production it will subscribe dev.

@lucas-paes-movile
Copy link

Is someone ever going to consider this issue? It's been really annoying to deploy to different environments without being able to define function names.

@thucnc
Copy link

thucnc commented Aug 29, 2019

@pmuens may you take a look and do a merge for above PRs to release this feature ?

@joshuaquek
Copy link

joshuaquek commented Jan 24, 2020

Same issue as #84

Update: Posted a workaround solution on #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants