About AWS CodeCommit
CodeCommit is Regional, so Iru walks enabled Regions. AttachAWSCodeCommitReadOnly, which includes codecommit:GitPull, BatchGet*, Describe*, Get*, List*, and pull-request approval evaluation. If repositories use a customer-managed KMS key, add kms:Decrypt for that key’s ARN.
How It Works
Iru runs in its own AWS account. To read CodeCommit repositories and related metadata in your account, you create an IAM role that Iru can assume viasts:AssumeRole, gated by the wizard External ID, with read-only codecommit: permissions (for example AWSCodeCommitReadOnly or the inline JSON on the AWS tab). You then paste the role’s ARN back into Iru.
| Detail | Value |
|---|---|
| Category | Developer tools |
| Authentication | Cross-account IAM role |
Prerequisites
- IAM rights to create roles.
- At least one CodeCommit repository where you expect evidence.
Connect AWS CodeCommit to Iru
- Iru Compliance
- AWS
Start here: open the source wizard and copy the trust policy (and note the external ID). When you are ready to create the role in AWS, switch to the AWS tab and follow Create the IAM role in AWS. After you have the Role ARN, return to the Iru Compliance tab and complete Submit the role ARN in Iru below.
Get the trust policy from Iru
Turn on AWS CodeCommit
Find AWS CodeCommit (use Category or Search by name or description). On that card, turn on the toggle. Leave the Iru is requesting access to external services wizard tab open.
Copy the trust policy JSON
The wizard shows the trust policy JSON your IAM role must use (Principal and sts:ExternalId). Below is an example of the structure; copy the live JSON from your wizard so the account, principal ARN, and external ID match exactly.
copy=false
Switch to AWS to create the role
Keep the Iru wizard tab open for reference, then switch to the AWS tab and follow Create the IAM role in AWS.
Submit the role ARN in Iru
Finish the AWS tab first (through Create the IAM role in AWS) so you have the Role ARN from the new role.
Paste the IAM Role ARN
Return to the Iru wizard tab. Paste the Role ARN where the connector prompts for it.
Finish the connection
Click Submit Role. When the connection succeeds, the wizard shows Connection Configured.
Troubleshooting
Nothing opens when you turn the source on
Nothing opens when you turn the source on
Check pop-up blocker settings for the Iru site and try again.
AccessDenied on a repo
AccessDenied on a repo
Add
kms:Decrypt for that repository’s CMK.No repositories
No repositories
Confirm the Region you use in AWS matches where repos exist.
AssumeRole denied
AssumeRole denied
External ID mismatch.
Considerations
CodeCommit was announced for end of new customer…
CodeCommit was announced for end of new customer access in July 2024 - plan migrations and retire this source when repos move.
Related Articles
Sources Management
Browse and manage every Compliance source.
Getting Started With Compliance
Frameworks, actions, and Artifacts.
Iru Overview
How Endpoint, Compliance, and Identity fit together.
Artifacts Management
Upload, review, and organize evidence from sources and actions.
