I've been trying to get a connect to a Redis instance from an App Engine instance without any luck. I get a connection time out.
I've set the host and port in my app.yaml:
env_variables:
REDIS_HOST: '10.0.0.3'
REDIS_PORT: '6379'
And try to connect as specified in the examples:
redis_host = os.environ.get('REDIS_HOST', 'localhost')
redis_port = int(os.environ.get('REDIS_PORT', 6379))
redis_client = redis.StrictRedis(host=redis_host, port=redis_port)
But it's not working, some documentation seem to want en vpc access connector, but those are only available in the us-cental1 and I got both the App Engine instances & Memorystore (Redis) running in asia-northeast1.
Has anyone had any luck getting this working? In general google's pretty good at documenting their stuff but this seems lacking to me, there's really no clear documentation on how to get it working.
You can use VPC connector in other region, but only with the gcloud command line. On the GUI, only us-central1 is available.