Skip to content

Instantly share code, notes, and snippets.

@thoughtspeed7
Created September 5, 2021 12:48
Show Gist options
  • Save thoughtspeed7/dda60af2514690aa591b3eb244affea0 to your computer and use it in GitHub Desktop.
Save thoughtspeed7/dda60af2514690aa591b3eb244affea0 to your computer and use it in GitHub Desktop.
Connect To Redis Memorystore From Cloud Functions, Cloud Run and App Engine Using Serverless VPC Access | Google Cloud
#! /bin/bash
GCP_REGION=us-central1 #replace us-central1 with your gcp region
gcloud functions deploy hello-redis \
--allow-unauthenticated \
--entry-point main \
--region $GCP_REGION \
--runtime nodejs14 \
--trigger-http \
--vpc-connector hello-redis-vpc-connector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment