Automating Code Reviews with Amazon CodeGuru

Lab Steps

Logging in to the Amazon Web Services Console
Associating Amazon CodeGuru with a CodeCommit Repository
Triggering an Amazon CodeGuru Review
Viewing Amazon CodeGuru Comments

The hands-on lab is part of this learning path

This lab is currently under maintenance and unavailable. We're actively working to resolve this issue and we apologize for any inconvenience.

Ready for the real environment experience?

Time Limit1h


Amazon CodeGuru is a machine-learning-powered solution for automating performance reviews and improving application performance. It does by acting both on your code repositories and actual applications, and it currently supports Java code.

When you submit a pull request to a CodeGuru-associated code repository, such as Amazon CodeCommit, CodeGuru will peruse the changes in the pull request and make recommendations based on its own analysis of millions of lines of external code, as comments on your file changes. Additionally, if you deploy CodeGuru as an agent in your application, over time it will make observations and recommendations to help you find and fix code issues such as performance leaks, wasted CPU cycles and more.

In this lab, you'll associate an Amazon CodeCommit repository with CodeGuru and create a pull request to be analyzed.

Lab Objectives 

Upon completion of this lab you will be able to:

  • Be familiar with the basics of Amazon CodeGuru
  • Use CodeGuru to analyze code in a repository

Intended Audience

This lab is intended for:

  • Developers
  • DevOps engineers


You should be familiar with:

  • Familiarity with the AWS console is helpful but not required


May 19th, 2022 - Updated the instructions to reflect a specific CodeGuru Reviewer comment in the pull request

April 4th, 2022 - Updated the instructions and screenshots to reflect the latest UI

Environment before
Environment after
About the Author
Learning paths7

Matt has worked for multiple Fortune 500 companies as a DevOps Engineer and Solutions Architect. He is an AWS Certified DevOps Engineer - Professional, and an AWS Certified Solution Architect - Associate. He enjoys reading and learning new technologies.