Skip to content

Instantly share code, notes, and snippets.

@thoughtspeed7
Created September 5, 2021 15:49
Show Gist options
  • Save thoughtspeed7/960a911822c391c6e95ce26c95658b55 to your computer and use it in GitHub Desktop.
Save thoughtspeed7/960a911822c391c6e95ce26c95658b55 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
# om namah shivaya
service: default
runtime: nodejs14
instance_class: F1
automatic_scaling:
min_instances: 0
max_instances: 1
target_cpu_utilization: 0.90
handlers:
- url: /.*
secure: always
redirect_http_response_code: 301
script: auto
vpc_access_connector:
# replace GCP_PROJECT_ID with your gcp project id
# replace GCP_REGION with your gcp region
name: projects/GCP_PROJECT_ID/locations/GCP_REGION/connectors/hello-redis-vpc-connector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment