AWS CodeBuild Report Group
This page shows how to write Terraform and CloudFormation for CodeBuild Report Group and write them securely.
aws_codebuild_report_group (Terraform)
The Report Group in CodeBuild can be configured in Terraform with the resource name aws_codebuild_report_group
. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_codebuild_report_group" "report_yesisonline" {
name = "yesisonline report group"
type = "TEST"
export_config {
type = "S3"
resource "aws_codebuild_report_group" "encrypted_report_group" {
export_config {
type = "S3"
s3_destination {
bucket = "some-bucket"
encryption_disabled = false
resource "aws_codebuild_report_group" "encrypted_report_group" {
export_config {
type = "S3"
s3_destination {
bucket = "some-bucket"
encryption_disabled = false
resource "aws_codebuild_report_group" "encrypted_report_group" {
export_config {
type = "S3"
s3_destination {
bucket = "some-bucket"
encryption_disabled = false
resource "aws_codebuild_report_group" "non-encrypted" {
name = "codebuild-report-group-non-kms-cmk-encrypted"
type = "TEST"
export_config {
type = "S3"
Parameters
-
arn
optional computed - string -
created
optional computed - string -
delete_reports
optional - bool -
id
optional computed - string -
name
required - string -
tags
optional - map from string to string -
type
required - string -
export_config
list block-
type
required - string -
s3_destination
list block-
bucket
required - string -
encryption_disabled
optional - bool -
encryption_key
required - string -
packaging
optional - string -
path
optional - string
-
-
Explanation in Terraform Registry
Provides a CodeBuild Report Groups Resource.
Tips: Best Practices for The Other AWS CodeBuild Resources
In addition to the aws_codebuild_project, AWS CodeBuild has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.
aws_codebuild_project
Ensure to enable encryption of CodeBuild artifacts
It's better to protect CodeBuild project artifacts with default encryption.
AWS::CodeBuild::ReportGroup (CloudFormation)
The ReportGroup in CodeBuild can be configured in CloudFormation with the resource name AWS::CodeBuild::ReportGroup
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
Type
required - String -
ExportConfig
required - ReportExportConfig -
DeleteReports
optional - Boolean -
Tags
optional - List of Tag -
Name
optional - String
Explanation in CloudFormation Registry
Represents a report group. A report group contains a collection of reports.
Frequently asked questions
What is AWS CodeBuild Report Group?
AWS CodeBuild Report Group is a resource for CodeBuild of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS CodeBuild Report Group?
For Terraform, the yesisonline/DevOps, SnidermanIndustries/checkov-fork and bridgecrewio/checkov source code examples are useful. See the Terraform Example section for further details.