AWS CodeBuild
AWS CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for popular programming languages and build tools such as Apache Maven, Gradle, and more. You can also customize build environments in CodeBuild to use your own build tools. CodeBuild scales automatically to meet peak build requests. For more details, refer to the AWS documentation.
Log and metric types​
Setup​
You can collect the logs and metrics for Sumo Logic's AWS CodeBuild integration by following the below steps.
Configure metrics collection​
- Collect CloudWatch Metrics with namespace
AWS/CodeBuild
using the AWS Kinesis Firehose for Metrics source. ForAWS/CodeBuild
metrics and dimensions, refer to AWS ClodeBuild CloudWatch metrics.
Configure logs collection​
- Collect AWS CloudTrail Logs using AWS CloudTrail source. AWS CodeBuild is integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or AWS service in CodeBuild. CloudTrail captures all API calls for CodeBuild as events, including calls from the CodeBuild console and from code calls to the CodeBuild APIs. If you create a trail, you can enable continuous delivery of CloudTrail events to an S3 bucket, including events for CodeBuild. Using the information collected by CloudTrail, you can determine the request that was made to CodeBuild, the IP address from which the request was made, who made the request, when it was made, and additional details.