codecommit:CreateCommit is a Write access-level action in the codecommit service. Grants permission to add, copy, move or update single or multiple files in a branch in an AWS CodeCommit repository, and generate a commit for the changes in the specified branch
ARNs that codecommit:CreateCommit can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants codecommit:CreateCommit.
Filters access by tag key-value pairs attached to the resource
A minimal policy that allows codecommit:CreateCommit. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCodecommitCreateCommit",
"Effect": "Allow",
"Action": "codecommit:CreateCommit",
"Resource": "*"
}
]
}