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).
In the navigation pane, choose Users
and then choose Add user
.
Check Programmatic Access
under Access type
.
On the Permissions
tab, choose Attach existing policies directly
.
From the list of policies, select AWSCodeCommitPowerUser
.
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
.
Download .csv
file with credentials as you will need it when connect to the repository from command line.