There is a problem with the connection between AWS resources and I am investigating where the problem is occurring.
Therefore, I would like to do connectivity test through the following route.
EC2->VGW(VirtualPrivateGW)->DXGW(DirectConnectGW)->VIF(VirtualIF)
I connected to EC2 with SessionManager and tried to run the ping command, but could not find the ip address of the VGW/DXGW/VIF.