Skip to content
Example of using Serverless VPC Access with Cloud Functions to connect to Compute Engine
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cf initial commit Jun 20, 2019
.gitignore
README.md
create_network.sh
create_vm.sh setting iam roles Jun 21, 2019
create_vpc_connector.sh initial commit Jun 20, 2019
set_iam_roles.sh

README.md

Connecting Cloud Function with Serverless VPC access

Detailed description is on https://www.the-swamp.info/blog/connecting-cloud-functions-compute-engine/

Coomands to execute in order to setup everything:

Create Network

create_network.sh
in case you don't want to use default VPC network, you can create custom
mandatory step is to create firewall to allow communication to Redis database

Create GCE instance

create_vm.sh

Create Serverless VPC Access connector

create_vpc_connector.sh

Deploy Cloud Function

cf\deploy_cf.sh

You can’t perform that action at this time.