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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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!

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 Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

224 views 4 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you