EC2_Peering Connection

0

I was practicing peering connection in aws.. I have created one vpc and there's one default vpc in aws account and created one subnet for user created vpc..Now i have created ec2 for both the vpc one for default vpc and another for user created vpc....Now i have connected ec2 of default vpc and also created one peering connection and in Route table of both vpc i have given ip address of oppsoite vpc and tried to ping user vpc ec2 private ip address...am geeting connection timedout error...Also, further am not able to connect to any ec2 instance...what might be issue any issues or security changed in account level?? Error: Failed to connect to your instance EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see Set up EC2 Instance Connect at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html.

1개 답변
1

Verify that the route table is configured correctly for both VPCs.
Also, make sure that the security group configured on the EC2 allows communication from the connection source.
As per the following document, VPCs that are VPC peering can refer to each other's security groups.
https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-security-groups.html

profile picture
전문가
답변함 일 년 전
  • To add check NACLs allow traffic between the 2 subnets also

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인