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
Programmatic Access under
Permissions tab, choose
Attach existing policies directly.
From the list of policies, select
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
.csv file with credentials as you will need it when connect to the repository from command line.