0

I have an EC2 instance in us-east-1 which would like to communicate with another instance in us-west-2.

VPC-East CIDR: 172.16.0.0/16

VPC-West CIDR: 172.17.0.0/16

The used subnets in these VPCs are 172.(16 or 17).0.0/24 correspondingly.

I've created a Peering Connection between the two regions VPC and maybe it would help so I allowed:

  • Allow accepter VPC to resolve DNS of hosts in requester VPC to private IP addresses

  • Allow requester VPC to resolve DNS of hosts in accepter VPC to private IP addresses

I also added a new route at the route tables:

  • the other one's CIDR should be searched at the Peering Connection. I.e. at VPC-East:

enter image description here

I've created a Reachability Analyzer from the East instance to the Peering Connection and it succeeds.

But ansible still fails to connect from East to West (From East to East it worked earlier).

Failed to connect to the host via ssh: ssh: connect to host 172.17.0.129 port 22: No route to host

Maybe it's not related to my main problem, but:

  • Another instance in the west can be accessed via a public IP by me and by East instance.
  • But it show this: Instance reachability check failed
  • While I can SSH, access the website it hosts, etc.

Thanks in advance!

Tudvari
  • 101
  • 3

0 Answers0