Cannot Clone Code from Gitlab running inAws Ec2 Instance

I recently took a trail version for Gitlab to understand the tool and its features. As a part of that iam trying to first set up a git repo and clone it from my local machine. I requested a trail license and installed gitlab in an Aws Ec2 instance which has the port 22 open. Once the installation is done and a project is created, i used the ssh-keygen and configured the pub key in the Gitlab User -> Settings -> SSH keys. Now from my machine when i try to clone it says “Operation timed out”. More specially this

git clone git@ec2-18-221-16-43.us-east-2.compute.amazonaws.com:root/my-sample-project.git
Cloning into ‘my-sample-project’…
ssh: connect to host ec2-18-221-16-43.us-east-2.compute.amazonaws.com port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Please suggest any taughts