Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,819
Community Members
 
Community Events
168
Community Groups

Can AWS CodeCommit support integration with Atlassian Crucible?

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

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

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

 

Regards,  

 

Jay

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.

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 Nov 06, 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
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

197 views 1 6
Read article

Atlassian Community Events