Tuesday, July 16, 2019

How To add logs for AWS Codebuild project or service

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

  1. We can use AWS Codebuild as an individual project or add as a stage in AWS Codepipeline pipeline too
  2. Either ways, we would be creating a 'New Project' in AWS Codebuild service
  3. While creating the 'New Project' in AWS Code build, there will be section or area called 'Logs' 
  4. 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