Created
September 5, 2021 14:22
-
-
Save thoughtspeed7/877f1b40971ecd927688ce5b54e384b7 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 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_PROJECT_ID=rajchaudhary #replace rajchaudhary with your gcp project id | |
GCP_REGION=us-central1 #replace us-central1 with your gcp region | |
gcloud builds submit \ | |
--tag gcr.io/$GCP_PROJECT_ID/hello-redis | |
gcloud run deploy hello-redis \ | |
--allow-unauthenticated \ | |
--image gcr.io/$GCP_PROJECT_ID/hello-redis \ | |
--platform managed \ | |
--region $GCP_REGION \ | |
--vpc-connector hello-redis-vpc-connector |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment