Try to edit the 'Security group' of your aws ec2 instance by allowing the access or create a new one and add an instance. As everything is denied by default, security groups decide to make it available on the internet based on the service we need. In the case of web servers, you need to allow access port 80 for 0.0.0.0/0(means any IP).
For pinging the instance, enable ICMP traffic.
Want to master AWS technology? Go through Intellipaat's AWS Online Training!