How To add logs for AWS Codebuild project or service
Let us see how to see logs of AWS Native service of AWS Codebuild logs for debugging or analysis
- We can use AWS Codebuild as an individual project or add as a stage in AWS Codepipeline pipeline too
- Either ways, we would be creating a 'New Project' in AWS Codebuild service
- While creating the 'New Project' in AWS Code build, there will be section or area called 'Logs'
- From Logs section, we have two options either 'Cloudwatch' or 'S3'. select either 'Cloudwatch Logs' or 'S3 Logs' to redirect or store the Codebuild logs, which can be used for later anlaysis or debugging
AWS Cloudwatch: If this option is selected to store logs, then we will be prompted for
AWS S3 Logs: If this option is selected then we need to provide S3 Bucket name and prefix, if any. Along with this, log file encryption can as well be defined, if required
Happy Codebuilding folks !!!
No comments:
Post a Comment