Thanks to Raja Mani, AWS Solutions Architect, for this great blog that describes how federated users can access AWS CodeCommit.
If you are federating with AWS for the first time, refer the following for more information and implementation guidance:There are two solutions available when using federated identities with AWS CodeCommit: AWS Single Sign-On and AWS Process Credential Provider.
You can access AWS CodeCommit repositories by using temporary credentials obtained from the AWS SSO user portal.
Using CodeCommit with AWS Process Credential ProviderYour second option is to use the AWS Process Credential Provider utility.
The AWS Process Credential Provider utility connects to AWS Simple Token Service (STS) using STS AssumeRoleWithSAML.