Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [vpc-peering]

The tag has no usage guidance.

0
votes
1answer
24 views

how do i get a vpc id from another account with terraform

I have an existing VPC in a separate account and am creating independent terraforms for more vpc's in new accounts. I wish to peer specific vpc's within each account but am finding it hard to ...
2
votes
1answer
100 views

How to configure cross region VPC peering on AWS with Terraform

I'm trying to create a terraform configuration to spin up multiple VPCs in different regions and create VPC peer connections between them. This is my module for the VPC # Required Variables ...
0
votes
1answer
25 views

Connecting two AWS VPCs in different regions

I have 2 VPC's in different regions (Virginia and Ohio) They both have IP ranges of: 172.31.0.0/16 Do I need to change the IP ranges of one region? How would I do that if I already have servers ...
0
votes
1answer
255 views

How to make GKE Services visible to another GKE cluster running in a different VPC

I am struggling to make Services become visible though peered VPC. I have two GKE clusters (cluster-A and cluster-B) each of then in a different VPC. I've created a VPC network peering connecting ...
0
votes
1answer
73 views

Forward from VPN to non-VPN network

I want to connect an existing Kubernetes cluster to remote VPN that uses only a specific subnet IP range. I could create a custom-mode VPC network within my project that only has the appropriate ...
0
votes
1answer
49 views

How can I send/generate traffic in GCP?

I'm using GCP for building a simple scenario. I set 3 VMs in deferent locations in a default VPC. I would like to send/generate traffic in order to use VPC flow logs, but I don't know how to do that.
0
votes
1answer
814 views

Issue Connecting to Cloud SQL Postgres using Private IP from GKE

Steps I have followed: 1. Create VPC network gcloud compute networks create stg-vpc \ --subnet-mode custom 2. Create IP range for VPC Peering for this network gcloud beta compute addresses ...
0
votes
2answers
719 views

Google Cloud Platform VPN and multiple projects

Is it possible, and does it make sense, to route traffic for multiple GCP projects through a single project back to my head office over VPN? Before I get too far down the rabbit hole the idea was to ...
0
votes
1answer
555 views

Google Cloud VPC network peering - DNS not shared?

I've got two VPC Networks: A B They are linked with eachother trough VPC network peering. Machines from network A can reach machines from network B just fine via IP. However, they are not capable ...
0
votes
1answer
344 views

Connecting from an AWS Lambda function or service within a VPC to a customer's private network over VPN tunnel

We are currently running AWS Lambda functions within a VPC and for example already have a peering connection setup to MongoDB Atlas to have our AWS Lambda's within the VPC communicate to our MongoDB ...
0
votes
1answer
62 views

How can you connect two Amazon VPCs through VPC peering if they are already configured with the network IPs?

According to AWS documentation you can connect up to 50 VPC through VPC peering but you have to make sure there's not IP overlapping so my questions here are: How can you come up with so many ...
0
votes
2answers
233 views

How to route traffic from host in VPC via host in different VPC

tl;dr Is there any way to route traffic from 172.20.0.100 to 200.0.0.100 in the diagram via 10.0.0.6 ? I have a setup where we have an existing AWS VPC (172.20.0.0/16) with a number of hosts in it. ...
1
vote
1answer
220 views

AWS VPC Peered - RDS accessing Active Directory Service

I have two aws accounts and I could establish a peering of two VPCs belonging to each account. Also, I was able to launch an EC2 instance one account joining to the AD domain on the other account. The ...
0
votes
1answer
30 views

Issue connecting EC2 instances in 2 separate VPCs (same region)

I have 2 VPCs (default and special) each hosting 1 EC2 instance. Both instances have the same security group (say name = internal). The security group allows All Traffic from internal (a circular ...
0
votes
2answers
720 views

Google Cloud routing with VPCs peered in a partially connected mesh topology

we are dividing our Google Cloud infrastructure into multiple projects, each with it's own VPC. We have one central VPC, let's call it vpcA, to which we connect via pritunl VPN and site-to-site tunnel ...
0
votes
0answers
138 views

How an Ec2 node can contact eni of a different node in different AWS account and vpc

I have a requirement that one of my EC2 instance's originating traffic to a specific ip address needs to land to a ENI of a different EC2 instance which is present in different account and different ...
0
votes
1answer
280 views

Solving the mystery - VPCs have overlapping IPv4 CIDR blocks

In AWS, When I try to create a peering connection I get this following error Failed due to incorrect VPC-ID, Account ID, or overlapping CIDR range I am not savvy with the networking and wonder how I ...
0
votes
1answer
72 views

Is it possible to share same AWS Elastic IP addresses between two and more VPC?

I have "VPC-A" with NAT and attached Elastic IP address. Couple of services are running inside under load and couldn't be easily moved. Also I have "VPC-B" with own NAT for subnet and, of course, ...
0
votes
0answers
296 views

Cross-VPC private RDS endpoint resolution from an RDS instance for replication

TL;DR : I'm trying to build cross-account MySQL RDS replication, but RDS seem to resolve DNS endpoints to public IP instead of private for cross-VPC RDS masters. I've set up VPC peering (across two ...
0
votes
1answer
310 views

AWS VPC peering using security groups

I setup a VPC peering connection between two regions (us-west-2, eu-central-1) in a single AWS account. In the documentation I see: You cannot reference the security group of a peer VPC that's in a ...
1
vote
1answer
212 views

SSH connection between two server after VPC Peering

I am trying to configure SSH connection between two server on two different VPC on my same account. VPC1: vpc-ba8ce8d2 172.31.0.0/16 rtb-576e373f acl-0dbefa65 VPC2: vpc-0c5fc020e4f30283d 10.0.0.0/...
0
votes
2answers
448 views

Does AWS RDS read replication require peering?

If you create an RDS instance in one region with a read replica in another (in private VPCs, no public access), is it required to peer the private VPCs for replication to occur or does AWS magically ...
0
votes
0answers
96 views

Unable to Resolve Machine Names via Domain Controller

I have two Amazon AWS VPC's connected via a peering connection, where I have enabled DNS resolution between them like so: I am also using an internal domain controller to provide DNS using the AWS ...
0
votes
1answer
323 views

Routing on an AWS OpenVPN multi-VPC + ClassicLink

I am having trouble connecting between servers in a multi-region network I’m setting up in AWS, as not all servers are able to be reached from any point in the network. I’m connecting a VPC (A) in ...
3
votes
2answers
602 views

Route traffic between a VPC in one region to a VPC in another region

In order to allow instances in a VPC in Oregon (us-west-2) to contact instances on another VPC in Ireland (eu-west-1), I've installed OpenSwan gateway machines on both regions and established an IPSEC ...
0
votes
1answer
690 views

server can't find 2.0.9.10.in-addr.arpa: NXDOMAIN

I have set up a VPC peering between two different project's VPC on GCP and it works fine when i ping my vm-instance and i'm also able to ssh to my instance with private ips. However, if I query it ...
4
votes
1answer
2k views

How to connect instances in different AWS accounts by private IP?

Say I have accounts A and B and light sail instances a and b in each account. a and b are in the same region and zone. Is it possiple for a and b to interconnect with private IP? For example, after I ...
0
votes
2answers
369 views

Private RDS in VPC, connect from EC2 in different VPC and region

I want to connect from a EC2 in US VPC to a private RDS in a EU VPC. The AWS docs don't seem to mention this scenario - does anyone know if it's possible? Thanks,
0
votes
1answer
533 views

VPC peering sharing security group ingress rules

If I have VPC1 with security group (sg-aaaaaaaa) that allows ssh access from source 10.10.10.10/32 and I peer VPC1 with VPC2 that has a security group (sg-bbbbbbbb) that allows ssh access from source ...
1
vote
1answer
800 views

Connecting multiple VPCs with the same CIDR block to a shared VPC

In my company's AWS cloud we have 4 VPCs, one for each of our major API environments (dev, test, stage, prod). In order to make these environments as similar as possible to each other they all have ...
0
votes
1answer
2k views

aws vpc to vpc connection with openvpn

I have a 2 VPC's in us-east-1(VPC1 and VPC2) and are VPC peered. I run openVPN in VPC1 to connect to both the vpc. Now I had to make 2 new VPC's in ap-southeast-1(VPC3 and VPC4) again both are VPC ...
1
vote
0answers
486 views

cannot ping ec2 in another vpc through peer connection

I have multiple VPC's set up, A, B and X. I have a peered connection between A & X and between B & X, X is the Peered VPC in both cases. I have added the CIDR Blocks for A & B to the ...
0
votes
1answer
1k views

Forwarding traffic from AWS ELB to another ELB

I have 2 VPCs (X and Y). We have a vpc peering connection between the two. In VPC X, we have a CNAME that needs to resolve to an ELB in VPC Y. Is there any way to make an ELB in VPC X forward traffic ...
1
vote
1answer
618 views

VPC peering: Accessing a resource in public subnet from a public subnet through peering connection issues

I have set vpc peering between these VPCs (vpc-1 and vpc-2). I have my RDS in vpc-1 in this subnets (10.13.1.0, 10.13.2.0, 10.13.3.0) with this route rtb-vpc1-rds. In the second VPC and two subnets : ...
1
vote
2answers
1k views

AWS Active Directory: Cannot access from another VPC

I've setup an Active Directory service in AWS in 2 private subnets in a VPC. I have another VPC in the same account that I want to be able to access the AD from. However for some reason it just isn't ...
1
vote
0answers
182 views

Cross region VPC/VPN not routing to peered VPC

I've setup IPSEC tunnels between 3 management VPCs in 3 distinct AWS regions. Each of those regions has additional VPCs (dev/prod) that are peered to the management VPCs. It's setup in a hub/spoke ...
1
vote
1answer
1k views

AWS VPC Peering security concern

I got started with AWS recently. I came across an use case which I believe is pretty common but I was curious to understand how it will be implemented on AWS. We are collaborating with another ...
1
vote
1answer
258 views

AWS VPN - Fault Tolerant Cross-Region and VPC CIDR block

I have some complicated question: I have connected multiple VPCs with EC2 Instances (IPSec) for routing traffic between VPC's across regions, I have VPN connection to each aws region, and everything ...
0
votes
1answer
3k views

Using AWS Nat Gateway from diferrent VPC across VPC peering

I would like to use Nat Gateway (not Nat Instance on EC2!) from another VPC to route my traffic from peered VPCs to the Internet. My infrastructure looks like this: /---------------------VPC-LIVECHAT-...