I have created a custom EC2 windows instance.
This EC2 instance is created within the public subnet but without public IP assigned to the EC2 instance, only private IP assigned. This public subnet has the Main Route Table with internet gateway(EIP) attached.
Added the ICMP protocol to the security group inbound rules with 0.0.0.0/0 ip subnets and also enabled the "File and Printer Sharing(Echo Request) firewall rules in the EC2 instance.
With the above configuration, I accept from my local machine I will not able to ping the EC2 instance. Why I am not able to ping ay public domain like(yahoo or goolge) from the EC2 instance. Note, I used Bastion machine to that EC2 instance.