Photo by Alex Smith on Unsplash

AWS CodeCommit on OSX & unable to access / returned error: 403

Accessing a repository with https protocol should be very simple but on OSX it is currently broken — but there is a solution.

The Problem

The Solution

Looking under hood of git credential helper I thought it might be possible to wrap the helper and include the call to delete the credentials in the keychain. Additional I wanted a more flexible solution to get the “aws_access_key_id” by only setting the profile name.

  1. go to your project directory and replace the existing aws credential helper with this command (one line!):
    git config — local credential.helper ‘!~/bin/ AWS_PROFILE’

Fast-track professional successful in the design, development and deployment of technology strategies and policy. Experienced leading Internet and IS operations

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store