Your EC2 instance cannot reach the internet. The security group is correct, but the subnet route table does not map 0.0.0.0/0 to an Internet Gateway.