skip to Main Content

I created an instance on GCP, but I am not able to access it.
This is similar to this one, but the proposed solution isn’t working for me:
Unable to telnet to GCP MemoryStore

I have tried to telnet to it, I am in the same project and region, but apparently I need to be in the same network as it’s a private ip, but what if you want to connect using the cloud shell? Also, how would an application running on my local machine access it?
I also included a firewall rule to make sure incoming connections are allowed.

2

Answers


    • To connect a client to a Cloud Memorystore for Redis instance, the client and the instance must be located in the same region, in same project and in the same VPC network. Please check the “Networking” document where you’ll have information on Basic network settings, limited and unsupported networks, network peering, IP address range.

    • You can connect to Redis from different GCP products like Compute Engine VM, Google Kubernetes Engine Cluster or Google Kubernetes Engine pod, but you can’t connect directly from the Cloud shell or from your local machine since they are not in your VPC network.

    Login or Signup to reply.
  1. It may also have to do with a missing peering connection to your network. Check in your console at https://console.cloud.google.com/networking/peering/ to see if the peering is set up properly.

    Using terraform you can use the following docs: https://www.terraform.io/docs/providers/google/r/redis_instance.html

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search