codebuild:CreateReport

Write

codebuild:CreateReport is a Write access-level action in the codebuild service. Grants permission to create a report. A report is created when tests specified in the buildspec file for a report groups run during the build of a project

Resource types

ARNs that codebuild:CreateReport can be scoped to in an IAM policy.

arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}
report-group

Condition keys

Keys you can use in the Condition block of a policy that grants codebuild:CreateReport.

aws:ResourceTag/${TagKey} String

Filters access by actions based on tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows codebuild:CreateReport. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCodebuildCreateReport",
      "Effect": "Allow",
      "Action": "codebuild:CreateReport",
      "Resource": "*"
    }
  ]
}

Related actions in codebuild

View all codebuild actions →