Deepak Verma
Deepak Verma

Reputation: 673

Accessing memorystore in Shared VPC

I have created a Memorystore instance with IP 10.190.50.3 (and this is in us-east1). I have a shared VPC setup with name my-gcp and I also authorised the same when creating the Memorystore instance.

In shared VPC, I have a service project dev and I have a window machine(10.190.5.7). Inside that when I am trying to connect to memory store from that Windows machine, I am not able to connect to Memorystore instance.

I have also enabled egress traffic to 10.190.50.3 from all instance of my-gcp vpc. this vpc is setup in us-east4.

tracert, ping also not working form window machine for IP 10.190.50.3.

This Memorystore instance is created in host project of vpc.

Upvotes: 1

Views: 4257

Answers (3)

Utkarsh Sharma
Utkarsh Sharma

Reputation: 625

Now we can deploy GCP's memory store in the shared network using the private connection. Refer this link for more details.

Steps below:

  1. Verify or establish a private services access connection for the network in the host project that you use to create your Redis instance.

  2. Make sure the Service Networking API is enabled for both the host project and the service project.

  3. Follow the steps from Creating a Redis instance on a VPC network, but make the following modifications:

    a. Complete the optional step for setting up a private services access connection.

    b. Use the Authorized VPC Network dropdown to select the Shared VPC network from the host project. It is listed under Shared VPC Networks.

Upvotes: 0

Mohibul Mahmud
Mohibul Mahmud

Reputation: 49

I found the public documentation updated recently:

1.The connecting client must be on the same network and in the same region (different zone within same region will also ok) as your Cloud Memorystore for Redis instance.

2.If you are using a Shared VPC network across multiple projects, you can connect to a Redis instance that is deployed on shared VPC network on the host project. Connecting to a Redis instance that is deployed on shared VPC network in a service project is not supported.

Also here is the link on how to Connect to the Redis instance from a Compute Engine VM.

Upvotes: 2

ankitk
ankitk

Reputation: 448

Unfortunately, accessing memorystore from service project is currently not supported in Shared VPC .

Upvotes: 0

Related Questions