43784/integrate-jenkins-with-aws-codecommit
I'm trying to integrate Jenkins with AWS CodeCommit. My jenkins is running on an ec2 instance with ubuntu 14.04.
The problem is, that sudo -u jenkins aws configure isn't executed because the jenkins user has no permissions.
What would you do?
Hey @Vishal, Follow these steps:
Create an ssh key on the Jenkins EC2 instance (/var/lib/jenkins/.ssh/id_rsa)
ssh-keygen -b 2048 -t rsa -f /var/lib/jenkins/.ssh/id-rsa -a -N
Upload the public key to an IAM user (IAM user must have CodeCommit access)
aws iam upload-ssh-public-key --user-name <username> --ssh-public-key-body file:///var/lib/jenkins/.ssh/id_rsa.pub
Collect the SSHPublicKeyID when you upload the key
{ "SSHPublicKey": { "UserName": "jenkins", "Status": "Active", "SSHPublicKeyBody": "ssh-rsa <rsa-key> <host>\n", "UploadDate": "2015-09-02T19:18:24.309Z", "Fingerprint": "xxx", "SSHPublicKeyId": "******" } }
Create/modify SSH config file
Host git-codecommit.*.amazonaws.com User APK******* IdentityFile /var/lib/jenkins/.ssh/id_rsa StrictHostKeyChecking no
Where the ****** is the value of the Key ID retrieved in step 3
I'm trying to integrate Jenkins with AWS ...READ MORE
Now, there is no official servicenow support ...READ MORE
Check if you can connect to tfs ...READ MORE
Hey @Ali, follow these steps to integrate ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
It can work if you try to put ...READ MORE
To solve this problem, I followed advice ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
Hey @Jithin, you could use something like ...READ MORE
Yes, you can! try something like this: node ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.