Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Setting up VPC Network Peering

Hi,

I am trying to create a MatchingEngineIndexEndpoint using the code below:

my_index_endpoint = aiplatform.MatchingEngineIndexEndpoint.create( display_name=DISPLAY_NAME, description=DISPLAY_NAME, public_endpoint_enabled=False, network=VPC_NETWORK_FULL, )

but I keep getting this error:

Error NETWORK_NOT_PEERED

I understand that I need to set up VPC Network Peering on my Google Cloud account. But I am not sure what is the difference between "Your VPC Network" and "VPC Network Name" when creating a peering connection:

omneky_0-1704734310099.png

In both menus, I only see one single item too choose from (which is the "default" connection). Therefore, I can choose this "default" connection only for one of the menus.

 

Can you please let me know how to properly create peering network connection?

 

Thanks

2 2 2,420