I recently purchased Amazon's EC2 and chose the Ubuntu server. But today I found that the ping is unreachable; the reason is that the security group of AWS needs to set the relevant protocol of ping.
In Console->Instance->Security Group, add inbound rules as follows: