Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
Serverless Google Cloud Functions Plugin
This plugin enables support for Google Cloud Functions within the Serverless Framework.
This project is looking for maintainers!
If you would like to be a maintainer of this project, please reach out to one of the active Serverless organization members to express your interest.
We'd love to collaborate closely with amazing developers as we drive the development of this open technology into the future.
Welcome, and thanks in advance for your help!
Documentation
The documentation can be found here.
from
https://github.com/serverless/serverless-google-cloudfunctions
(https://www.serverless.com/framework/docs/providers/google)
---------------------------------------------------------------------------
Installing the Serverless Framework
Next, install the Serverless Framework via npm which was already installed when you installed Node.js.
Open up a terminal and type npm install -g serverless
to install Serverless.
Once the installation process is done you can verify that Serverless is installed successfully by running the following command in your terminal:
To see which version of serverless you have installed run:
Installing the Google Cloud Functions Provider Plugin
Install the latest package from npm by running:
Setting up Google Cloud Functions
To run Serverless commands that issue requests to the Google Cloud, you will need to setup your Google Cloud credentials on your machine.
Follow these instructions on setting up your Google Cloud credentials
from
https://www.serverless.com/framework/docs/providers/google/guide/installation
---------------------------------------------------------------------------------------------
Google - Install
Installs a service from a GitHub URL in the current working directory:
Options
--url
or-u
The services Git URL (can be a plain Git or a Code Hosting Platform URL). Required.--name
or-n
Name for the service.
Supported Code Hosting Platforms
- GitHub
- GitHub Enterprise
- GitLab
- BitBucket
- BitBucket Server
Examples
Installing a service from a GitHub URL:
This example will download the .zip file of the boilerplate-googlecloudfunctions-nodejs
service from GitHub, create a new directory with the name boilerplate-googlecloudfunctions-nodejs
in the current working directory and unzips the files in this directory.
Installing a service from a GitHub URL with a new service name:
This example will download the .zip file of the boilerplate-googlecloudfunctions-nodejs
service from GitHub, create a new directory with the name my-gcloud-service
in the current working directory and unzips the files in this directory and renames the service to my-gcloud-service
if serverless.yml
exists in the service root.
Installing a service from a directory in a GitHub URL:
This example will download the google-node-simple-http-endpoint
service from GitHub.
from
https://www.serverless.com/framework/docs/providers/google/cli-reference/install