Issues Integrating an AWS CodeCommit repository to Bitrise

#1

I have attempted to setup Bitrise with a React Native project hosted on AWS CodeCommit following these docs:

With the public key being attached to the AWS IAM user for Bitrise. I have just given this user the permission set of AWSCodeCommitReadOnly.

I used the SSH url for my repo to be integrated with Bitrise and also clicked on “set up my own SSH” and also added the private key that I generated for this user.

However, I received error mesages about permission issues with the public key issued to this Bitrise account. Output below:

Git clone repository
=> git "init"
=> git "remote" "add" "origin" "[REDACTED]"
=> git "fetch"
0 attempt failed:
Warning: Permanently added 'git-codecommit.{region-name-redacted}' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

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

Does the Docker container that connects to this repo need to have have a config file with the SSH key id for this user in ~/.ssh? The AWS Docs here seem to indicate it: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-unixes.html

Can provide more details upon request

0 Likes

#2

Sorry to hear about the issue @ek-mm! Can you let us know how this SSH key was generated?

0 Likes

#3

Hey @bitce,

I misread the docs and forgot to add the SSH key ID to the repository URL when entering the clone URL of the repo. Sorry for the inconvenience :smile:

0 Likes

#4

No worries! Glad to hear it wasn’t anything more persistent :slight_smile:

0 Likes