Skip to content

Instantly share code, notes, and snippets.

@thoughtspeed7
Created September 5, 2021 14:22
Show Gist options
  • Save thoughtspeed7/877f1b40971ecd927688ce5b54e384b7 to your computer and use it in GitHub Desktop.
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
#! /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