Overview
Use CloudConnexa to establish private connectivity between a Google Cloud virtual private cloud (VPC) and an Amazon Web Services (AWS) VPC.
By deploying a Network Connector in each VPC and configuring the required routes, you can enable resources in both cloud environments to communicate through CloudConnexa without establishing a direct connection between the VPCs.
This article explains how to deploy the Network Connectors, configure routing, and verify connectivity between Google Cloud and AWS.
Before you begin, ensure you have:
- Administrator access to CloudConnexa.
- Access to Google Cloud with permissions to deploy virtual machine (VM) instances and configure VPC routes.
- Access to AWS with permissions to deploy EC2 instances and configure VPC routing.
- Two VPCs with nonoverlapping CIDR ranges.
- The private subnet ranges for both VPCs.
Important: Ensure that the VPC CIDR ranges don't overlap. Overlapping subnets can prevent CloudConnexa from routing traffic correctly between the two environments.
Step 1: Deploy a Network Connector in Google Cloud
Deploy a Network Connector to connect your Google Cloud VPC to CloudConnexa.
- Sign in to the Google Cloud console.
- Follow the CloudConnexa Google Cloud Connector deployment tutorial.
- Configure the Network Connector to provide access to the private subnet resources in your Google Cloud VPC.
- Verify that the Network Connector connects to CloudConnexa.
Step 2: Deploy a Network Connector in AWS
Next, deploy a Network Connector to connect your AWS VPC to CloudConnexa.
- Sign in to the AWS Management Console.
- Follow the CloudConnexa AWS VPC Connector deployment tutorial.
- Configure the Network Connector to provide access to the private subnet resources in your AWS VPC.
- Verify that the Network Connector connects to CloudConnexa.
Step 3: Configure routing between Google Cloud and AWS
Configure routing in both cloud environments so resources in each VPC can communicate through CloudConnexa.
You'll add routes that direct traffic for the remote VPC to your local Network Connector.
For this example, we'll use the following subnet ranges:
| Network | Example subnet |
| Google Cloud VPC | 192.0.2.0/24 |
| AWS VPC | 198.51.100.0/24 |
| CloudConnexa WPC | 100.96.0.0/11 |
| CloudConnexa Domain Routing | 100.80.0.0/12 |
Note: The Google Cloud and AWS subnet ranges are reserved for documentation and aren't intended for actual deployments. Use your VPCs' actual private CIDR ranges and the subnet ranges assigned to your CloudConnexa WPC.
Configure routing for the Google Cloud VPC
First, configure routing in Google Cloud so resources in your Google Cloud VPC can reach the AWS VPC.
- Sign in to the Google Cloud console.
- Navigate to VPC network → Routes.
- Select the Route management tab.
- Select Create route.
- Configure the route with the following settings:
- Name: Enter a descriptive name, such as 'to-aws-vpc'.
- Network: Select the VPC containing your Google Cloud Network Connector.
- Destination IP range: Enter 198.51.100.0/24 (the subnet for the AWS VPC).
- Priority: Use the appropriate route priority for your environment.
- Next hop: Select the next-hop IP address option and enter the internal IP address of your Google Cloud Network Connector.
- Select Create to save the route.
- Add routes for your CloudConnexa WPC and Domain Routing subnets if your configuration requires them. Use the same Network Connector as the next hop.
Your Google Cloud VPC now has a route directing traffic for the AWS VPC to the local Network Connector.
Configure Routing for the AWS VPC
Next, configure routing in AWS so resources in your AWS VPC can reach the Google Cloud VPC.
- Sign in to the AWS Management Console.
- Navigate to VPC → Route Tables.
- Select the route table associated with the subnet containing the resources you want to connect to the Google Cloud VPC.
- Select the Routes tab, then Edit routes.
- Add a route with the following settings:
- Destination: 192.0.2.0/24 (the subnet for the Google Cloud VPC).
- Target: The network interface of your AWS Network Connector.
- Add routes for your CloudConnexa WPC and Domain Routing subnets if your configuration requires them.
- Select Save changes.
Your AWS VPC route table now directs traffic for the Google Cloud VPC to the local Network Connector.
Step 4: Verify network access settings
Before testing connectivity, check that both cloud environments and CloudConnexa allow traffic between the VPCs.
- In Google Cloud, verify that IP forwarding is enabled for the VM instance running your Network Connector.
- In AWS, verify that IP forwarding is configured on the Network Connector and that source/destination checking is disabled on its EC2 instance.
- Review your Google Cloud firewall rules, AWS security groups, and network ACLs. Ensure they allow the traffic you want to exchange between the VPCs.
- In the CloudConnexa Administration Portal, verify that your Access Groups allow the intended communication between the two Networks.
- Confirm that both Network Connectors are connected to CloudConnexa.
Verify connectivity
Test the connection in both directions to confirm that resources in Google Cloud and AWS can communicate.
- Connect to a VM instance in your Google Cloud VPC.
- Test connectivity to the private IP address of a resource in your AWS VPC.
- Connect to an EC2 instance in your AWS VPC.
- Test connectivity to the private IP address of a resource in your Google Cloud VPC.
- Verify that the applications or services you want to access are reachable across the connection.
If connectivity fails, check the Google Cloud and AWS routes, Google Cloud firewall rules, AWS security groups, network ACLs, CloudConnexa Access Groups, and Network Connector status.
Note: If you're testing with
ping, ensure that your security groups and host firewalls allow ICMP traffic. Otherwise, test using a protocol and port permitted by your configuration.
Comments
0 comments
Please sign in to leave a comment.