question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add V1 to Google Cloud Functions

See original GitHub issue

Looking at the list here, https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types, we see that cloudfunctions.v1beta2.function is a supported type.

However, Cloud Functions are now out of beta, and we should upgrade to V1 them before December 4th 2018.

It would be nice to have it added to this list

I have tried deploying with the type cloudfunctions.v1.function, but am getting the error The type [cloudfunctions.v1.function] was not found.

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
markmssdcommented, Sep 4, 2018

Thanks guys, I got it working following your example! 🔥🔥

Something that was not very obvious with the documentation, but got it from the example, is the parent field.

For anyone else landing on this issue, here is an example of a V1 Cloud Function for Deployment Manager:

{
        type: 'gcp-types/cloudfunctions-v1:projects.locations.functions',
        name: 'my-service-dev-func1',
        properties: {
          parent: 'projects/gcloud-project-id/locations/us-central1',
          location: 'us-central1',
          runtime: 'nodejs8',
          entryPoint: 'func1',
          function: 'my-service-dev-func1',
          availableMemoryMb: 256,
          timeout: '60s',
          sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
          httpsTrigger: {
            url: 'foo',
          },
          labels: {},
        },
}
1reaction
thackemcommented, Sep 4, 2018

Cloud functions V1 is accessible through a DM type provider: type: gcp-types/cloudfunctions-v1:$collection

e.g. https://github.com/GoogleCloudPlatform/deploymentmanager-samples/tree/master/examples/v2/cloud_functions

Supported types are updated often, for the latest list please use: gcloud beta deployment-manager types list --project gcp-types

provider: gcp-types/cloudfunctions-v1 types:

  • projects.locations
  • projects.locations.functions
  • operations
Read more comments on GitHub >

github_iconTop Results From Across the Web

Package google.cloud.functions.v1
CloudFunctionsService. A service that application uses to manipulate triggers and functions. Synchronously invokes a deployed Cloud Function. ...
Read more >
Create a Google function from a Google cloud function
I did this in python: Create the first cloud function hello_world . Zip the function and move it to Google Cloud Storage.
Read more >
Best way to deploy TypeScript function to Cloud Function? #254
I am using the TypeScript template to write the function and I faced some issues trying to deploy it using the gcloud functions...
Read more >
cloudfunctions - Go Packages
import "google.golang.org/api/cloudfunctions/v1" ... ctx := context. ... This may be used to include empty fields in Patch requests.
Read more >
Functions - Google Developers
For # example: # # 1. The authorization model must support it. Google Cloud Functions # only allows EventTriggers to be deployed that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found