You can ping it from your local machine.
You have to go to your security group of the EC2 instance you created. Then go to inbound rules and click Edit.
Then add a Custom ICMP rule with Protocol as Echo Request. For source, add Anywhere so that you can ping from any machine you want. Check out this screenshot for a better understanding.
Hope this helps!