I have two ec2 instances created in Amazon cloud, one with public IP(Elastic IP), and another with only private IP 172.31.5.151. Then, set security group to the instance with public IP to limit https inbound access like 172.31.5.151/32, allowing only private IP to the instance with public IP.
But it doesn't work. Access denied when https access from instance with private IP to instance with public IP. When I chanage the https inbound filter to 0.0.0.0/0, then everything works fine. The question is: how to set inbound filter for a private IP?