Setup Git credentials

If you are using remote VM, please skip this section as Git credentials are already configured there.

Open AWS Console and go to IAM (Identity and Access Management).

Git credentials

In the navigation pane, choose Users and then choose Add user.

Check Programmatic Access under Access type.

Git credentials

On the Permissions tab, choose Attach existing policies directly.

From the list of policies, select AWSCodeCommitPowerUser.

Git credentials

After you create new user, choose your IAM user.

On the user details page, choose the Security Credentials tab, and in HTTPS Git credentials for AWS CodeCommit, choose Generate credentials.

Git credentials

Download .csv file with credentials as you will need it when connect to the repository from command line.

Git credentials

Git credentials