Amazon CodeGuru Security

Amazon CodeGuru Security

CodeGuru Security is currently available for free in public preview. 

Amazon CodeGuru Reviewer

For CodeGuru Reviewer, you pay a monthly fixed rate. The monthly price is determined by the aggregated number of lines of code across all of your onboarded repositories, and is calculated using the pricing tiers based on the size of your repository. If you have a code repository with multiple code branches, you will be charged for the largest code branch. Noncode lines in repositories such as comments and empty lines are not counted.

AWS Free Tier

You can get started with CodeGuru Reviewer at no cost. The AWS Free Tier for CodeGuru Reviewer lasts 90 days for up to 100K lines of code in onboarded repositories per AWS account. When the 90-day AWS Free Tier expires, or your repository size exceeds 100K lines of code, you will pay standard pricing rates based on the repository size tier below.

Standard pricing

When you enable CodeGuru Reviewer on your repository, you can 1) perform an incremental code review analysis (for example, pull, push, or merge request) to analyze any code changes or 2) do a full repository scan to get recommendations on the entire repository. The standard monthly pricing includes all incremental code review analysis for onboarded repositories. The monthly price also includes up to two full repository scans per month for each onboarded repository. Additional full repository scans will be charged at $10 per 100K lines of code.

Every incremental code review analysis and full repository scan is inclusive of all security features available in CodeGuru Reviewer. See documentation for more details.

CodeGuru Reviewer pricing examples

  • Consider a scenario where you have a single code repository containing 90,000 lines of code. Each month developers submit 100 incremental code reviews and trigger two full repository scans.

    Repository size  Price for the first 100K lines of code Price for the additional 100K lines of code Monthly charge

    90k

    $0 (first 90 days)

    $10 (after 90-day AWS Free Tier)

    Not applicable 

    $0 (first 90 days)

    $10 (after 90-day AWS Free Tier)

  • Consider a scenario where your AWS Free Tier has expired. You have a single code repository, containing 450,000 lines of code. Each month your developers submit 300 incremental code reviews and trigger two full repository scans. In this scenario, your fixed monthly price will be rounded up to 400,000 lines of code and you will be charged as if you had a 400K code repository.

    Repository size  Price for the first 100K lines of code Price for the additional 100K lines of code Monthly charge

    450K

    $10

    $30 * 4 (350K rounded to 400K/ 100K) = $120

    $10 + $120 = $130

  • You may also wish to run code analysis on more than one repository. In this example we have three code repositories, each containing 300K lines of code. Each month your developers submit 200 incremental code reviews and trigger two full repository scans on each of the code repositories.

    Repository size  Price for the first 100K lines of code Price for the additional 100K lines of code Monthly charge

    3 * 300K = 900K

    $10

    $30 * 8 (800K/ 100K) = $240

    $10 + $240 = $250

  • You may have a repository that contains multiple code branches. You can run code analysis or any or all of the branches and will be charged only for the largest code branch. In this example, you have a single code repository, containing three branches. The main branch contains 400K lines of code and the other two branches contain 300K lines of code each. Every month your developers submit 300 incremental code reviews, averaging 1,000 lines of code per review, across all three branches. 

    Repository size  Price for the first 100K lines of code Price for the additional 100K lines of code Monthly charge

    Max (400K, 300K, 300K) = 400K

    $10

    $30 * 3 (300K/ 100K) = $90

    $10 + $90 = $100

  • In this example, we will illustrate the impact to your monthly cost of more than two full repository scans per repository per month. You have three code repositories, each containing 300K lines of code. Each month your developers submit 200 incremental code reviews on each of the code repositories. They trigger three full repository scans for the first repository and two full repository scans each for the other two repositories.

    Repository size  1st 100K lines of code Additional 100K lines of code Monthly charge 

    3 * 300K = 900K

    $10

    $30 * 8 (800K/ 100K) = $240

    $10 + $240 = $250

    Repository  Repository size Full repository scan Cap limit (per repository) Over-cap charge
    First 300k 3 2 (3-2) * $10 * 3 (300K/100K) = $30
    Second 300k 2 2 $0
    Third 300k 2 2 $0

    Total monthly charges = $250 + $30 = $280

Amazon CodeGuru Profiler

When you enable CodeGuru Profiler to profile your application, it samples the CPU utilization and latency characteristics of your application runtime to create an application profile. For applications running on Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon Elastic Container Service (Amazon ECS), Amazon Elastic Kubernetes Service (Amazon EKS), AWS Fargate, or AWS Lambda, each application profile is priced based on the number of sampling hours that CodeGuru Profiler performs. One sampling hour is equivalent to running the CodeGuru Profiler agent on one instance or container for one hour. Similarly, if one application is running on two instances or containers for one hour each, and the agent is running on these two instances, it will collect two sampling hours.

AWS Free Tier

You can get started with CodeGuru Profiler at no cost.  The AWS Free Tier for CodeGuru Profiler lasts for 90 days. When the 90-day AWS Free Tier expires, you will pay standard pricing rates based on the number of sampling hours below. 

Standard pricing

Application profiling on Amazon EC2 instances and Amazon ECS, Amazon EKS, and Fargate containers $0.005 per sampling hour for the first 36,000 sampling hours per profiling group per month. No additional charge beyond 36,000 sampling hours per profiling group per month. 
Application profiling on Lambda Free for the first 500 sampling hours per payer account. Therafter, $0.005 per sampling hour for the first 36,000 sampling hours per profiling group per month. No additional charge beyond 36,000 sampling hours per profiling group per month. 

CodeGuru Profiler pricing examples

  • Consider a scenario where you want CodeGuru Profiler to profile one application running on 50 Amazon EC2 instances. In this case, the profiling group will consist of a single application. 

    Number of applications  Number of Amazon EC2 instances  Sampling hours  Sampling hour / application Monthly charges

    1

    50

    1 application * 50 instances * 24 hours per day * 30 days per month = 36,000 sampling hours

    $0.005 per hour

    36,000 * $0.005 = $180
  • Consider a scenario where you want CodeGuru Profiler to profile 10 applications, each as a different profiling group, running on Amazon EC2 instances with 15 Amazon EC2 instances per application.

    Number of applications  Number of Amazon EC2 instances  Sampling hour / application Price per sampling hour  Monthly charges

    10

    15

    1 application* 15 instances * 24 hours per day * 30 days per month = 10,800 sampling hours

    $0.005 per hour

    10,800 * $0.005 * 10 applications = $540
  • Consider a scenario where you want CodeGuru Profiler to profile a single application running on 70 Amazon ECS containers.

    Number of applications  Number of Amazon EC2 instances  Sampling hour / application Price per sampling hour  Monthly charges

    1

    70

    1 application * 70 instances * 24 hours per day * 30 days per month = 50,400 sampling hours

    $0.005 per hour

    36,000 * $0.005 = $180
  • Consider a scenario where you want CodeGuru Profiler to profile a Lambda function which runs for 5 seconds on each invocation and gets invoked 1,000,000 times in a month.

    In this example, since the first 500 sampling hours per payer account are free, CodeGuru Profiler charges for your account for this billing period would be 888.89 sampling hours at a rate of $0.005 per hour. 

    Number of sampling hours Price per sampling hour Monthly charges

    (5 seconds * 1,000,000 invocations) / 3,600 seconds = 1,388.89 sampling hours

    $0.005 per hour

    (1,388.89 hours - 500 hours) * $0.005 = $4.44
  • Consider a scenario where you want CodeGuru Profiler to profile two Lambda functions as part of the same profiling group. The first Lambda function runs for 3 seconds on each invocation and gets invoked 10,000,000 times in a month. The second Lambda function runs for 6 seconds on each invocation and gets invoked 20,000,000 times in a month.

    Assuming this is all what you profile for Lambda in your account, the first 500 sampling hours are free for your account, and we don’t charge beyond 36,000 hours per profiling group. 

     

    Number of sampling hours Price per sampling hour Monthly charges

    (3 seconds * 10,000,000 invocations + 6 seconds * 20,000,000 invocations) / 3,600 seconds = 41,666.67 sampling hours

    $0.005 per hour

    (36,000-500) * 0.005 = $177.50

From 2/14/22-3/17/22, there was an error published on the CodeGuru Reviewer pricing page. If you believe you were charged incorrectly during this time, please submit an AWS billing request.