ReportGroup
Learn how to create, update, and manage AWS CodeBuild ReportGroups using Alchemy Cloud Control.
The ReportGroup resource lets you manage AWS CodeBuild ReportGroups for organizing and storing test reports generated by your builds.
Minimal Example
Section titled “Minimal Example”Create a basic ReportGroup with the required Type and ExportConfig properties:
import AWS from "alchemy/aws/control";
const basicReportGroup = await AWS.CodeBuild.ReportGroup("basicReportGroup", { Type: "TEST", ExportConfig: { ExportConfigType: "S3", S3Destination: { Bucket: "my-report-bucket", Path: "reports/", Packaging: "ZIP" } }});
Advanced Configuration
Section titled “Advanced Configuration”Configure a ReportGroup with additional options including tags and the option to delete reports:
const advancedReportGroup = await AWS.CodeBuild.ReportGroup("advancedReportGroup", { Type: "TEST", ExportConfig: { ExportConfigType: "S3", S3Destination: { Bucket: "my-advanced-report-bucket", Path: "advanced-reports/", Packaging: "NONE" } }, DeleteReports: true, Tags: [ { Key: "Environment", Value: "Production" }, { Key: "Project", Value: "MyApp" } ], Name: "MyAdvancedReportGroup"});
Custom Report Group with Adoption
Section titled “Custom Report Group with Adoption”Create a ReportGroup that adopts an existing resource and includes customized properties:
const customReportGroup = await AWS.CodeBuild.ReportGroup("customReportGroup", { Type: "CODE_COVERAGE", ExportConfig: { ExportConfigType: "S3", S3Destination: { Bucket: "my-custom-report-bucket", Path: "custom-reports/", Packaging: "ZIP" } }, DeleteReports: false, Tags: [ { Key: "Department", Value: "Engineering" } ], Name: "CustomReportGroup", adopt: true});