How to get latency from client to EC2 which is started by GameLift

I need to show the latency of every GameSession to the player.

So I want to ping the EC2, but it always failed. I assume it is because the Security Group defined by GameLift do not permit ping.

Is it possible to modify the Security Group of GameLift? Or is there any other way can I get the ping conveniently?