Created
September 5, 2021 12:48
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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