Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can AWS CodeCommit support integration with Atlassian Crucible?

Deleted user November 6, 2015

Hi,

Can you please let me know if AWS CodeCommit supports integration with Crucible.  If so, any instructional information regarding this integration would be greatly appreciated.

 

Thanks!

 

2 answers

1 accepted

5 votes
Answer accepted
Maciej Swinarski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2015

Hi Jay,

AWS CodeCommit is a GIT repository and this is fully supported by FishEye and Crucible.

To set up the connection:

AWS:

  • on the AWS console create a IAM user: fisheye_codecommit
  • create a policy to allow read access to your AWS CodeCommit repository, something like AWSCodeCommit-myRepo:

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "codecommit:BatchGetRepositories",
                    "codecommit:Get*",
                    "codecommit:GitPull",
                    "codecommit:List*",
                    "codecommit:Test*"
                ],
                "Resource": "arn:aws:codecommit:us-east-1:[]:[repository resource id]"
            }
        ]
    }

    , where the Resource is your AWS CodeCommit resource id.

  • attach to user: fisheye_codecommit the policy above: AWSCodeCommit-myRepo and the policy: IAMUserSSHKeys.
  • generate a key pair (ssh-keygen) and upload the public key to the AWS user fisheye_codecommit: Security Credentials / SSH keys for AWS CodeCommit and note down the SSH Key ID, something like:  APKAEIBAERJR2EXAMPLE

FishEye & Crucible:

  • go to FishEye and Crucible / Admin panel / Repositories and Add repository
  • add a GIT type repository and select the: Upload private key for SSH authentication style, select the generated earlier file with the private key
  • on the URL paste your repository SSH URL and add the SSH Key ID as user, this will be smth like:

    ssh://APKAEIBAERJR2EXAMPLE@git-codecommit.us-east-1.amazonaws.com/v1/repos/myRepository
  • press the Test button and you should see a successful test connection.

Mac

Deleted user November 7, 2015

Thanks, Maciej!  This is exactly the information we needed. 

 

Regards,  

 

Jay

Jacob Robertson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2020

You can also use the "HTTPS Git credentials for AWS CodeCommit" option under the IAM user.  It will give you an  https user like fisheye_codecommit-at-370284719446.  Then you just use the https option with that user/pass when you create the repository in fisheye.

mstachura1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2020

I haven't been able to get this SSH method to work for connecting to a CodeCommit repository. I'm getting the error "The file you uploaded is not a valid private key". What format is the private key file supposed to be in? I tried uploading a CSV and TXT file containing just the key, and also a CSV file containing the user name, key ID, key, and console login link, but nothing has worked so far. Any suggestions would be greatly appreciated!

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2015

I believe that Git is being used in AWS CodeCommit. The answer is probably yes.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events