Add CodeCommit Repo with Argo CD

Hello everyone…!!!
I’m trying to set up a CodeCommit (AWS) repository, over https it works fine, with SSH it doesn’t. I think the reason is that to clone a CodeCommit repo over SSH you need to configure a config file in the path ~/.ssh with the following structure:
Host git-codecommit.*.amazonaws.com
User XXXXVCL5YYYYPAT4ZZZZ
IdentityFile ~/.ssh/id_rsa
This file is the result of configuring SSH public keys for AWS CodeCommit. On my local machine I can clone my repos via SSH and the mentioned settings. How can I configure CodeCommit in ArgoCD?


As can be seen in the image, through HTTPS it is successful and with SSH it failed.