Skip to content

Instantly share code, notes, and snippets.

@ddepaoli3
Last active September 11, 2022 15:22
Show Gist options
  • Save ddepaoli3/13c29f5a898a5ab4cad469bd76067c95 to your computer and use it in GitHub Desktop.
Save ddepaoli3/13c29f5a898a5ab4cad469bd76067c95 to your computer and use it in GitHub Desktop.
How to use codecommit with IAM role without using IAM user credential

CodeCommit and Role

Centos 7

  1. Add to EC2 CodeCommitReadOnly Role
  2. sudo yum install -y awscli
  3. sudo rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm
  4. sudo yum install -y libcurl
  5. git config --global credential.helper '!aws codecommit credential-helper $@'
  6. git config --global credential.UseHttpPath true
  7. git clone https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/codecommit-repo

Note

@omerfsen
Copy link

Thank you. That is what i was looking for ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment