Access Git to EC2 (UBuntu Server)

Hello all,
I have problem access SSH From Gitlab to my server on AWS, After i strict ip inbound to my instance (EC2), i can not ssh from git to it, As if i allow anywhere access with it can access normally, But i want to secure my intance, I want to know what ip that Gitlab use and is there anything to allow Gitlab access to my server via ssh,