AWSAWS CodeCommitDeveloper Tools

aws_codecommit_repository cost estimation

A CodeCommit repository is free to create and free for the first five active users per month; beyond that it bills a flat rate per active user with generous included storage and requests.

An aws_codecommit_repository provisions a private Git repository hosted in AWS. Creating the repository costs nothing. CodeCommit prices by active user per month: the first five active users are free, and each additional active user is a flat $1/month. An active user is any identity that accesses the repository in a billing month, so a team of five or fewer pays nothing for the service.

Each active user's flat charge includes a generous allowance: 50 GB-month of storage, 10,000 Git requests, and 2,000 pull, push, and merge operations per month, pooled across the account. Overages are cheap ($0.06/GB-month of storage beyond the pool, $0.001 per Git request beyond the pool), so for normal source-control usage the bill is essentially the per-active-user fee and nothing else. There is no charge for the repository sitting idle.

Note that AWS closed CodeCommit to new customers in mid-2024, so new repositories are only available in accounts that already used it. Where it is available, the cost is predictable and small. c3x reports the per-active-user model and the included allowances so you can see that a CodeCommit repository is either free (five or fewer users) or a flat few dollars, rather than a variable spend.

Terraform example

A minimal but realistic configuration that C3X can estimate.

resource "aws_codecommit_repository" "app" {
  repository_name = "app"
  description      = "Application source code"

  default_branch = "main"
}

Pricing dimensions

What you actually pay for when you provision aws_codecommit_repository.

DimensionUnitWhat's being charged
First five active usersfreeUp to five active users per month access repositories at no charge.
$0
Additional active usersper active user-monthEach active user beyond the first five is a flat monthly fee with pooled allowances.
$1.00/active user-month
Overage beyond pooled allowancesper GB-month / per requestStorage and Git requests beyond the per-user pooled allowance are billed at low rates.
$0.06/GB-month, $0.001/request

Optimization tips

Common ways to reduce aws_codecommit_repository cost without changing the workload.

Count active users, not repositories

Billing is per active user, not per repository. Consolidating or splitting repositories does not change the bill; the number of people accessing them in a month does.

Stay within the five free users where possible

Small teams and service-only accounts with five or fewer active users pay nothing. Automated identities count as active users, so scope service roles carefully.

Keep large binaries out of Git

Storage beyond the pooled allowance bills per GB-month. Store large artifacts in S3 rather than committing them, so the repository stays within the included storage.

FAQ

Does a CodeCommit repository cost money?

Creating one is free, and the first five active users per month are free. Beyond that it is a flat $1 per active user per month, with pooled storage and request allowances that cover normal usage.

What counts as an active user in CodeCommit?

Any unique identity, human or automated, that accesses a CodeCommit repository during the billing month. Billing is per active user across the account, not per repository or per commit.

Can I still create new CodeCommit repositories?

Only in accounts that already used CodeCommit. AWS closed it to new customers in mid-2024. Where available, pricing remains the per-active-user model with five free users.

Related resources

Estimate this resource in your own Terraform

Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including aws_codecommit_repository.