AI Slop Code Risk Monitor

aws-samples/aws-cdk-examples

SlopCodeMonitor badge for aws-samples/aws-cdk-examples Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
6.0 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for aws-samples/aws-cdk-examples. SynthScan examined 99,583 lines of code across 1954 source files, recording 329 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 6.0 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

6.0
Adjusted Signal
6.0
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
99.6K
Lines of Code
2.0K
Files
329
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 18.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 191 finding(s).

Hallucinated Dependency & Supply Chain Risk 6.7/100 · LOW

Are imports declared and package/API names verified? 109 finding(s).

Agent Over-Engineering Ratio 4.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 54 finding(s).

PR Review Velocity Impact 23.4/100 · LOW

Which changes need focused human review? 329 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 10MEDIUM 67LOW 250

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 329 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Self-Referential Comments59 hits · 207 pts
SeverityFileLineSnippetContext
MEDIUM⚡…rtfolio_with_ec2_product/portfolio_with_ec2_product.py63 # Create a portfolioCOMMENT
MEDIUM⚡…rtfolio_with_ec2_product/portfolio_with_ec2_product.py69 # Create an EC2 product from a Product StackCOMMENT
MEDIUMpython/application-load-balancer/app.py16 # Create a VPC for our infrastructureCOMMENT
MEDIUMpython/application-load-balancer/app.py24 # Create an Auto Scaling Group with EC2 instancesCOMMENT
MEDIUMpython/application-load-balancer/app.py36 # Create an Application Load BalancerCOMMENT
MEDIUM…eline-smoke-test/pipeline_smoke_test/pipeline_stack.py14# Create a connection with:COMMENT
MEDIUMpython/ecs/ecs-service-with-task-placement/app.py11# Create a clusterCOMMENT
MEDIUMpython/ecs/ecs-service-with-task-placement/app.py33# Create a task definition with placement constraintsCOMMENT
MEDIUMpython/ecs/fargate-service-with-autoscaling/app.py15 # Create a clusterCOMMENT
MEDIUMpython/ecs/ecs-service-with-task-networking/app.py13# Create a clusterCOMMENT
MEDIUMpython/ecs/ecs-service-with-task-networking/app.py35# Create a task definition with its own elastic network interfaceCOMMENT
MEDIUMpython/ecs/ecs-service-with-task-networking/app.py54# Create a security group that allows HTTP traffic on port 80 for ourCOMMENT
MEDIUMpython/ecs/ecs-service-with-task-networking/app.py66# Create the serviceCOMMENT
MEDIUM⚡python/ecs/fargate-service-with-efs/app.py33 # Create an Amazon Elastic File System (EFS), with the logical ID CDK-efs-sample-EFSCOMMENT
MEDIUM⚡python/ecs/fargate-service-with-efs/app.py41 # Create an Access Point for the EFS, with the logical ID CDK-efs-sample-AccessPointCOMMENT
MEDIUM⚡python/ecs/fargate-service-with-efs/app.py47 # Create a new EFS volume configuration for the ECS TaskCOMMENT
MEDIUMpython/ecs/fargate-service-with-efs/app.py60 # Create a new IAM Role for the ECS TaskCOMMENT
MEDIUMpython/ecs/fargate-service-with-efs/app.py100 # Create a new Fargate Task DefinitionCOMMENT
MEDIUMpython/ecs/fargate-service-with-efs/app.py143 # Create a new Fargate Service with ALBCOMMENT
MEDIUM⚡python/ecs/fargate-service-with-efs/app.py165 # Create a new Auto Scaling Policy for the ECS ServiceCOMMENT
MEDIUM⚡python/ecs/fargate-service-with-efs/app.py171 # Create a new Auto Scaling Policy for the ECS ServiceCOMMENT
MEDIUM⚡python/ecs/fargate-service-with-efs/app.py176 # Create a new Auto Scaling Policy for the ECS ServiceCOMMENT
MEDIUM⚡python/ecs/fargate-service-with-efs/app.py181# Create the new CDK ApplicationCOMMENT
MEDIUM…hon/iot-msk-lambda-pipeline/msk_demo/msk_demo_stack.py235 # Create the Iot Messaging destination and ruleCOMMENT
MEDIUM…es-lambda/api_stages_lambda/api_stages_lambda_stack.py23 # Define the REST APICOMMENT
MEDIUM⚡…/api-sqs-lambda/api_sqs_lambda/api_sqs_lambda_stack.py16 #Create the SQS queueCOMMENT
MEDIUM⚡…/api-sqs-lambda/api_sqs_lambda/api_sqs_lambda_stack.py19 #Create the API GW service role with permissions to call SQSCOMMENT
MEDIUM⚡…/api-sqs-lambda/api_sqs_lambda/api_sqs_lambda_stack.py27 #Create an API GW Rest APICOMMENT
MEDIUM⚡…/api-sqs-lambda/api_sqs_lambda/api_sqs_lambda_stack.py31 #Create a resource named "example" on the base APICOMMENT
MEDIUM…/api-sqs-lambda/api_sqs_lambda/api_sqs_lambda_stack.py59 #Create a Method Response Object: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_apigateway/MethoCOMMENT
MEDIUM…/api-sqs-lambda/api_sqs_lambda/api_sqs_lambda_stack.py76 #Create an SQS event source for LambdaCOMMENT
MEDIUMpython/eventbridge-mesh/single-consumer/app.py18 # Create the EventBusCOMMENT
MEDIUMpython/eventbridge-mesh/multiple-consumers/app.py18 # Create the EventBusCOMMENT
MEDIUM…ambda/api_eventbridge_lambda/api_eventbridge_lambda.py70 # Create a Role for KinesisFirehoseCOMMENT
MEDIUM…cks/apigw_http_api_lambda_dynamodb_python_cdk_stack.py70 # Create the Lambda function to receive the requestCOMMENT
MEDIUM…azon-verified-permissions-rest-api/stack/apigw/main.py18 # Create the REST APICOMMENT
MEDIUM…search_simple_domain/opensearch_simple_domain_stack.py31 # Create an environment variable before running cdk deploy. E.g.:COMMENT
MEDIUM⚡python/ecs-serviceconnect/ecs/ecs_stack.py22 # Creating the ECS Cluster and the cloud map namespaceCOMMENT
MEDIUM⚡python/ecs-serviceconnect/ecs/ecs_stack.py28 # Creating the Cloudwatch log group where ECS Logs will be storedCOMMENT
MEDIUM⚡python/ecs-serviceconnect/ecs/ecs_stack.py34 # Creating the task and execution IAM roles that the containers will assume to read and write to cloudwatch, TasCOMMENT
MEDIUMpython/ecs-serviceconnect/ecs/ecs_stack.py99 # Creating the service definitions and port mappingsCOMMENT
MEDIUMpython/ecs-serviceconnect/ecs/ecs_stack.py130 # Creating a public load balancer that will listen on port 80 and forward requests to the frontend ecs containerCOMMENT
MEDIUM…_service_connect/cdk_examples_service_connect_stack.py12 # Creating a shared VPC with public subnets and private subnets with NAT GatewaysCOMMENT
MEDIUMpython/iotcore/cdk_iot_thing/cdk_iot_thing_stack.py29 # Create an IoT ThingCOMMENT
MEDIUMpython/iotcore/cdk_iot_thing/cdk_iot_thing_stack.py76 # Create a policy of the certificateCOMMENT
MEDIUMpython/iotcore/cdk_iot_thing/cdk_iot_thing_stack.py121 # Create an IAM role for logging the IoT rule eventCOMMENT
MEDIUMpython/url-shortener/lambda/handler.py39 # Create a unique id (take first 8 chars)COMMENT
MEDIUMpython/url-shortener/lambda/handler.py50 # Create the redirect URLCOMMENT
MEDIUM…tasync-s3/datasync_s3_to_s3/datasync_s3_to_s3_stack.py45 # Create the locationsCOMMENT
MEDIUM…tasync-s3/datasync_s3_to_s3/datasync_s3_to_s3_stack.py90 # Create the locationsCOMMENT
MEDIUM⚡…nc-s3/datasync_s3_to_s3/datasync_s3_to_s3_IAM_stack.py13 # Create a list of bucket paths ending in /* for IAM policyCOMMENT
MEDIUM⚡…nc-s3/datasync_s3_to_s3/datasync_s3_to_s3_IAM_stack.py19 # Create an IAM Role for DataSync to read and write to S3 bucketCOMMENT
MEDIUM⚡…nc-s3/datasync_s3_to_s3/datasync_s3_to_s3_IAM_stack.py20 # Create an IAM roleCOMMENT
MEDIUM…ine-glue-deploy/lambda_etl_launch/lambda_etl_launch.py71 # Create the Glue jobCOMMENT
MEDIUM⚡scripts/build-all-typescript.sh25# Create a temporary directory for build logsCOMMENT
MEDIUMscripts/build-all-typescript.sh70 # Create a modified version of the build script that suppresses cdk synth outputCOMMENT
MEDIUM.github/workflows/build-pull-request.yml20 # Define a matrix strategy to run the job for multiple languagesCOMMENT
MEDIUM.github/workflows/build-pull-request.yml49 # Create a temporary directory for build logsCOMMENT
MEDIUM.github/workflows/build-pull-request.yml102 # Create an array to store directories to be builtCOMMENT
Unused Imports103 hits · 103 pts
SeverityFileLineSnippetContext
LOW…rtfolio_with_ec2_product/portfolio_with_ec2_product.py1CODE
LOWpython/rekognition-video-processor/app.py2CODE
LOWpython/application-load-balancer/app.py2CODE
LOWpython/application-load-balancer/app.py3CODE
LOW…c-provision/os_vpc_provision/os_vpc_provision_stack.py6CODE
LOW…c-provision/os_vpc_provision/os_vpc_provision_stack.py21CODE
LOW…c-provision/os_vpc_provision/os_vpc_provision_stack.py22CODE
LOW…c-provision/os_vpc_provision/os_vpc_provision_stack.py24CODE
LOWpython/opensearch/ctcwl-oss/app.py2CODE
LOW…thon/opensearch/ctcwl-oss/ctcwl_oss/ctcwl_oss_stack.py6CODE
LOW…thon/opensearch/ctcwl-oss/ctcwl_oss/ctcwl_oss_stack.py7CODE
LOW…thon/opensearch/ctcwl-oss/ctcwl_oss/ctcwl_oss_stack.py20CODE
LOW…thon/opensearch/ctcwl-oss/ctcwl_oss/ctcwl_oss_stack.py21CODE
LOWpython/backup-s3/app.py2CODE
LOWpython/codepipeline-build-deploy-github-manual/app.py2CODE
LOW…peline_build_deploy/codepipeline_build_deploy_stack.py1CODE
LOWpython/ecs/fargate-load-balanced-service/app.py1CODE
LOWpython/ecs/fargate-service-with-efs/app.py12CODE
LOW…hon/iot-msk-lambda-pipeline/msk_demo/msk_demo_stack.py2CODE
LOW…hon/iot-msk-lambda-pipeline/msk_demo/msk_demo_stack.py13CODE
LOWpython/api-stages-lambda/app.py2CODE
LOWpython/api-stages-lambda/tests/conftest.py1CODE
LOWpython/api-stages-lambda/tests/api_driver.py3CODE
LOWpython/serverless-backend/app.py2CODE
LOW…dge-ecs/s3_eventbridge_ecs/s3_eventbridge_ecs_stack.py1CODE
LOW…/ssh-into-emr-cluster/emr_pattern/emr_pattern_stack.py11CODE
LOWpython/lambda-cron/test_lambda-cron.py1CODE
LOWpython/lambda-cron/test_lambda-cron.py3CODE
LOW…hedulescaling/schedulescaling/schedulescaling_stack.py1CODE
LOW…hedulescaling/schedulescaling/schedulescaling_stack.py5CODE
LOW…hedulescaling/schedulescaling/schedulescaling_stack.py6CODE
LOW…hedulescaling/schedulescaling/schedulescaling_stack.py7CODE
LOWpython/image-content-search/stack/cdk.py4CODE
LOWpython/image-content-search/stack/cdk.py4CODE
LOW…maker-multimodel-endpoint/docker/dockerd-entrypoint.py1CODE
LOW…/ec2-cloudwatch/ec2_cloudwatch/ec2_cloudwatch_stack.py2CODE
LOW…cks/apigw_http_api_lambda_dynamodb_python_cdk_stack.py4CODE
LOW…ources/raw-strings/raw_strings/infrastructure_stack.py1CODE
LOW…ssions-rest-api/stack/verified_permissions/__init__.py1CODE
LOW…rest-api/stack/verified_permissions/policy/__init__.py1CODE
LOW…rest-api/stack/verified_permissions/policy/__init__.py2CODE
LOWpython/opensearch-simple-domain/app.py2CODE
LOW…search_simple_domain/opensearch_simple_domain_stack.py11CODE
LOWpython/ec2-alarms-to-opsitem/app.py2CODE
LOW…m/ec2_alarms_to_opsitem/ec2_alarms_to_opsitem_stack.py3CODE
LOWpython/ec2-alarms-to-opsitem/lambda/opsitem.py1CODE
LOWpython/ec2-alarms-to-opsitem/lambda/alarm.py1CODE
LOWpython/ec2-alarms-to-opsitem/lambda/alarm.py3CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
LOWpython/rds/oracle/oracle.py2CODE
43 more matches not shown…
Structural Annotation Overuse22 hits · 46 pts
SeverityFileLineSnippetContext
LOW⚡typescript/s3-kms-cross-account-replication/app.ts11// Step 1: Create the replication role in the source accountCOMMENT
LOW⚡typescript/s3-kms-cross-account-replication/app.ts19// Step 2: Create destination KMS Key & S3 Bucket to replication to and allow the replication role in the source accountCOMMENT
LOW⚡typescript/s3-kms-cross-account-replication/app.ts27// Step 3: Create source KMS Key & S3 Bucket to replicate from and allow the replication role to access it and replicateCOMMENT
LOWtypescript/batch-ecr-openmp/README.md201### Step 1: Cancel Running JobsCOMMENT
LOWtypescript/batch-ecr-openmp/README.md227### Step 2: Destroy the StackCOMMENT
LOWtypescript/batch-ecr-openmp/README.md241### Step 3: Clean Up Local Artifacts (Optional)COMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh21# Step 1: Build the OpenMP application locallyCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh30# Step 2: Run Unit TestsCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh38# Step 3: Test the application locallyCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh67# Step 4: Build Docker image locallyCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh76# Step 5: Test Docker containerCOMMENT
LOWtypescript/batch-ecr-openmp/scripts/test-local.sh90# Step 6: CDK Unit TestsCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh42# Step 1: Build the CDK stackCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh50# Step 2: Deploy CDK stackCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh58# Step 3: Get ECR login token and loginCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh66# Step 4: Build Docker imageCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh74# Step 5: Tag and push Docker imageCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh83# Step 6: Get stack outputsCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh87# Step 7: Save deployment info for automated job submissionCOMMENT
LOW⚡…to-lambda-dynamodb/src/Lambda/AuthFunction/Function.cs80 //Step 1: Confirm the structure of the JWTCOMMENT
LOW⚡…to-lambda-dynamodb/src/Lambda/AuthFunction/Function.cs84 //Step 2: Validate the JWT signatureCOMMENT
LOW⚡…to-lambda-dynamodb/src/Lambda/AuthFunction/Function.cs89 //Step 3: Verify the claimsCOMMENT
Over-Commented Block45 hits · 45 pts
SeverityFileLineSnippetContext
LOWgo/static-site/static-site.go181 // If unspecified, this stack will be "environment-agnostic".COMMENT
LOWgo/ec2-instance/ec2-instance.go101 // Account/Region-dependent features and context lookups will not work, but aCOMMENT
LOWgo/ec2-instance/configure.sh1#!/bin/shCOMMENT
LOWgo/classic-load-balancer/classic-load-balancer.go61}COMMENT
LOWgo/classic-load-balancer/classic-load-balancer.go81 // implied by the current CLI configuration. This is recommended for devCOMMENT
LOWgo/ecs/fargate-alb-pattern/fargate-alb-pattern.go61 // Account/Region-dependent features and context lookups will not work, but aCOMMENT
LOWgo/ecs/fargate-with-alb/fargate-with-alb.go101 // Uncomment if you know exactly what account and region you want to deployCOMMENT
LOWgo/ecs/cluster/cluster.go61// be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.htmlCOMMENT
LOWgo/ecs/cluster/cluster.go81 // return &awscdk.Environment{COMMENT
LOWgo/ecs/cluster-alb/cluster-alb.go121 app.Synth(nil)COMMENT
LOWgo/ecs/cluster-alb/cluster-alb.go141 // Uncomment to specialize this stack for the AWS Account and Region that areCOMMENT
LOWgo/step-functions/step-function.go101// be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.htmlCOMMENT
LOWgo/step-functions/step-function.go121 // return &awscdk.Environment{COMMENT
LOWgo/lambda-container-s3-trigger/lambda.go81// be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.htmlCOMMENT
LOWgo/lambda-container-s3-trigger/lambda.go101 // return &awscdk.Environment{COMMENT
LOWgo/eks/cluster/cluster.go101COMMENT
LOWgo/eks/cluster-graviton/cluster.go101 // Uncomment if you know exactly what account and region you want to deployCOMMENT
LOWgo/s3-event-processor/s3-event-processor.go121 // return &awscdk.Environment{COMMENT
LOWgo/lambda-cron/lambda-cron.go61 //---------------------------------------------------------------------------COMMENT
LOW…codepipeline-build-deploy/codepipeline-build-deploy.go321 // the stack to. This is the recommendation for production stacks.COMMENT
LOWgo/cognito-httpapi/README.md21COMMENT
LOWgo/sagemaker/endpoint-jumpstart/endpoint-jumpstart.go201// env determines the AWS environment (account+region) in which our stack is toCOMMENT
LOWgo/sagemaker/endpoint-jumpstart/endpoint-jumpstart.go221 // Uncomment to specialize this stack for the AWS Account and Region that areCOMMENT
LOWgo/sagemaker/notebook/notebook.go101 // Uncomment if you know exactly what account and region you want to deployCOMMENT
LOW…hon/route53-failover/alias_healthcheck_record_stack.py41 # healthCheckMetric = cloudwatch.Metric(COMMENT
LOWpython/waf/waf_cloudfront.py141 "priority" : 60,COMMENT
LOWpython/waf/waf_regional.py141 "override_action" : "none",COMMENT
LOW…hon/new-vpc-alb-asg-mysql/cdk_vpc_ec2/cdk_rds_stack.py21 # instance_type=ec2.InstanceType(instance_type_identifier="t2.small"COMMENT
LOW…search_simple_domain/opensearch_simple_domain_stack.py21COMMENT
LOWpython/rds/oracle/requirements.txt1##COMMENT
LOWpython/rds/oracle/oracle.py41 ## ec2.Peer.ipv4("0.0.0.0/0")COMMENT
LOWpython/rds/aurora/requirements.txt1##COMMENT
LOWpython/rds/aurora/aurora.py61 ##COMMENT
LOWpython/rds/mysql/requirements.txt1##COMMENT
LOWpython/datasync-s3/tests/unit/test_datasync_s3_stack.py1import aws_cdk as coreCOMMENT
LOWpython/ec2/instance/configure.sh1#!/bin/shCOMMENT
LOWtypescript/my-widget-service/widget_service.ts1// snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]COMMENT
LOWtypescript/my-widget-service/resources/widgets.js1//snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]COMMENT
LOW…rverless/lib/neptune-to-opensearch-serverless-stack.ts81 // Required for OpenSearch Serverless. Neptune rejects the pairing whenCOMMENT
LOW…rverless/lib/neptune-to-opensearch-serverless-stack.ts301 // costs latency, not throughput.COMMENT
LOWtypescript/postgres-lambda/test/postgres-lambda.test.ts1// import * as cdk from 'aws-cdk-lib';COMMENT
LOWtypescript/r53-resolver/test/r53-resolver.test.ts1// import * as cdk from 'aws-cdk-lib';COMMENT
LOWtypescript/lexbot/test/lexbot.test.ts1// import * as cdk from 'aws-cdk-lib';COMMENT
LOW.github/workflows/close-stale-issues.yml41 # If you don't want to mark a issue as being ancient based on aCOMMENT
LOWcsharp/static-site/src/StaticSite/StaticSiteStack.cs1using Amazon.CDK;COMMENT
Verbosity Indicators19 hits · 42 pts
SeverityFileLineSnippetContext
LOW⚡typescript/s3-kms-cross-account-replication/app.ts11// Step 1: Create the replication role in the source accountCOMMENT
LOW⚡typescript/s3-kms-cross-account-replication/app.ts19// Step 2: Create destination KMS Key & S3 Bucket to replication to and allow the replication role in the source accountCOMMENT
LOW⚡typescript/s3-kms-cross-account-replication/app.ts27// Step 3: Create source KMS Key & S3 Bucket to replicate from and allow the replication role to access it and replicateCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh21# Step 1: Build the OpenMP application locallyCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh30# Step 2: Run Unit TestsCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh38# Step 3: Test the application locallyCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh67# Step 4: Build Docker image locallyCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh76# Step 5: Test Docker containerCOMMENT
LOWtypescript/batch-ecr-openmp/scripts/test-local.sh90# Step 6: CDK Unit TestsCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh42# Step 1: Build the CDK stackCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh50# Step 2: Deploy CDK stackCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh58# Step 3: Get ECR login token and loginCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh66# Step 4: Build Docker imageCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh74# Step 5: Tag and push Docker imageCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh83# Step 6: Get stack outputsCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/build-and-deploy.sh87# Step 7: Save deployment info for automated job submissionCOMMENT
LOW⚡…to-lambda-dynamodb/src/Lambda/AuthFunction/Function.cs80 //Step 1: Confirm the structure of the JWTCOMMENT
LOW⚡…to-lambda-dynamodb/src/Lambda/AuthFunction/Function.cs84 //Step 2: Validate the JWT signatureCOMMENT
LOW⚡…to-lambda-dynamodb/src/Lambda/AuthFunction/Function.cs89 //Step 3: Verify the claimsCOMMENT
Cross-File Repetition5 hits · 25 pts
SeverityFileLineSnippetContext
HIGH…c-provision/os_vpc_provision/os_vpc_provision_stack.py0copyright amazon.com, inc. or its affiliates. all rights reserved. spdx-license-identifier: mit-0STRING
HIGHpython/opensearch/ctcwl-oss/app.py0copyright amazon.com, inc. or its affiliates. all rights reserved. spdx-license-identifier: mit-0STRING
HIGH…thon/opensearch/ctcwl-oss/ctcwl_oss/ctcwl_oss_stack.py0copyright amazon.com, inc. or its affiliates. all rights reserved. spdx-license-identifier: mit-0STRING
HIGHpython/opensearch/ctcwl-oss/lambda/index.py0copyright amazon.com, inc. or its affiliates. all rights reserved. spdx-license-identifier: mit-0STRING
HIGHpython/apigw-http-api-lambda-dynamodb-python-cdk/app.py0copyright amazon.com, inc. or its affiliates. all rights reserved. spdx-license-identifier: mit-0STRING
Hyper-Verbose Identifiers22 hits · 22 pts
SeverityFileLineSnippetContext
LOW…a-s3-glue/tests/unit/test_demo_athena_s3_glue_stack.py48def test_glue_database_created(template):CODE
LOW…a-s3-glue/tests/unit/test_demo_athena_s3_glue_stack.py62def test_glue_crawler_created(template):CODE
LOW…a-s3-glue/tests/unit/test_demo_athena_s3_glue_stack.py118def test_athena_workgroup_created(template):CODE
LOW…a-s3-glue/tests/unit/test_demo_athena_s3_glue_stack.py143def test_athena_queries_created(template):CODE
LOW…db-zero-etl/ddb_zero_etl/ddb_to_aoss_zero_etl_stack.py215 def collection_pipeline_policy_doc(self, collection_arn):CODE
LOW…db-zero-etl/ddb_zero_etl/ddb_to_aoss_zero_etl_stack.py282 def get_pipeline_configuration(self, table_arn, role_arn, collection_endpoint):CODE
LOW…thon/ddb/global-table-with-cmk/lib/stacks/cmk_stack.py55 def _create_cfn_output_key_arn(self, key_region: str, key_id: str):CODE
LOW…thon/ddb/global-table-with-cmk/lib/stacks/cmk_stack.py90 def get_key_replica_export_names(self, region: str):CODE
LOW…ual/tests/unit/test_codepipeline_build_deploy_stack.py7def test_deployment_controller_set():CODE
LOW…moke-test/tests/unit/test_pipeline_smoke_test_stack.py34def test_api_method_requires_iam_auth(service_template):CODE
LOW…moke-test/tests/unit/test_pipeline_smoke_test_stack.py50def test_smoke_test_role_is_created_under_the_expected_path(service_template):CODE
LOW…moke-test/tests/unit/test_pipeline_smoke_test_stack.py60def test_smoke_test_role_can_only_invoke_the_api(service_template):CODE
LOW…moke-test/tests/unit/test_pipeline_smoke_test_stack.py77def test_stack_exports_the_values_the_smoke_test_needs(service_template):CODE
LOW…moke-test/tests/unit/test_pipeline_smoke_test_stack.py84def test_smoke_test_runs_after_the_deployment(pipeline_template):CODE
LOW…moke-test/tests/unit/test_pipeline_smoke_test_stack.py114def test_smoke_test_step_may_only_assume_smoke_test_roles(pipeline_template):CODE
LOWpython/lambda-cron/test_lambda-cron.py12 def test_specified_resources_created(self):CODE
LOWpython/lambda-cron/test_lambda-cron.py16 def test_lambda_function_has_correct_properties(self):CODE
LOWpython/lambda-cron/test_lambda-cron.py32 def test_lambda_has_correct_iam_permissions(self):CODE
LOWpython/lambda-cron/test_lambda-cron.py53 def test_lambda_not_running_in_vpc(self):CODE
LOWpython/lambda-cron/test_lambda-cron.py59 def test_event_has_correct_rule(self):CODE
LOW…loy/tests/unit/test_codepipeline_build_deploy_stack.py7def test_deployment_controller_set():CODE
LOWscripts/update-cdk-dependencies/src/languages/python.ts16export function updateRequirementsContent(content: string, targets: TargetVersions): ReplacementResult {CODE
Excessive Try-Catch Wrapping18 hits · 22 pts
SeverityFileLineSnippetContext
LOW…gnition-video-processor/lambdas/process_video/index.py30 except Exception as e:CODE
MEDIUM…gnition-video-processor/lambdas/process_video/index.py31 print(f"Error processing celebrity recognition results: {str(e)}")CODE
LOWpython/opensearch/ctcwl-oss/lambda/index.py58 except Exception as e:CODE
MEDIUMpython/opensearch/ctcwl-oss/lambda/index.py20def handler(event, context):CODE
LOW…image-content-search/src/imageData/helper/migration.py20 except Exception as e:STRING
LOW…er/rekognition_lambda_s3_trigger/lambda/rekfunction.py53 except Exception as e:CODE
MEDIUM…er/rekognition_lambda_s3_trigger/lambda/rekfunction.py55 print("Error processing object {} from bucket {}. ".format(key, bucket_name))CODE
LOW…ine-glue-deploy/lambda_etl_launch/lambda_etl_launch.py95 except Exception as e:CODE
LOW…k/elasticbeanstalk-bg-pipeline/resources/blue_green.py66 except Exception as e:CODE
LOW…k/elasticbeanstalk-bg-pipeline/resources/blue_green.py215 except Exception as e:CODE
LOWtypescript/custom-resource/custom-resource-handler.py22 except Exception as e:CODE
LOWtypescript/secrets-manager-rotation/lambda/index.py141 except Exception as e:CODE
LOWtypescript/secrets-manager-rotation/lambda/index.py190 except Exception as e:CODE
LOWtypescript/secrets-manager-rotation/lambda/index.py248 except Exception as e:CODE
LOW…tch-ecr-openmp/lib/aws-batch-openmp-benchmark-stack.ts269 except Exception as e:CODE
MEDIUM…tch-ecr-openmp/lib/aws-batch-openmp-benchmark-stack.ts204def handler(event, context):CODE
LOW…k/elasticbeanstalk-bg-pipeline/resources/blue_green.py56 except Exception as e:CODE
LOW…k/elasticbeanstalk-bg-pipeline/resources/blue_green.py201 except Exception as e:CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…infra/src/main/java/com/myorg/S3ObjectLambdaStack.java106 software.amazon.awscdk.services.s3.CfnAccessPoint.Builder.create(this, "S3ObjectLambdaS3AccessPoint")CODE
CRITICAL…beanstalkBgPipeline/ElasticbeanstalkBgPipelineStack.cs31 Code = Amazon.CDK.AWS.Lambda.Code.FromAsset("resources"),CODE
Redundant / Tautological Comments9 hits · 16 pts
SeverityFileLineSnippetContext
LOWpython/opensearch/os-vpc-provision/bootstrap.sh13# Set region to deploy the stackCOMMENT
LOWtypescript/custom-resource/custom-resource-handler.py11 # Check if this is a Create and we're failing CreatesCOMMENT
LOWtypescript/batch-ecr-openmp/scripts/submit-job.sh131# Check if deployment-info.json existsCOMMENT
LOW⚡typescript/batch-ecr-openmp/scripts/test-local.sh15# Check if Docker is runningCOMMENT
LOWtypescript/batch-ecr-openmp/scripts/build-and-deploy.sh24# Check if AWS CLI is configured with the profileCOMMENT
LOWscripts/build-typescript.sh20# Check if yarn.lock existsCOMMENT
LOWscripts/build-typescript.sh26# Check if package-lock.json existsCOMMENT
LOW⚡scripts/build-all-typescript.sh13# Check if parallel is installedCOMMENT
LOW⚡scripts/build-all-typescript.sh19# Check if the build script existsCOMMENT
Cross-Language Confusion2 hits · 12 pts
SeverityFileLineSnippetContext
HIGH⚡…rtfolio_with_ec2_product/portfolio_with_ec2_product.py56 CfnOutput(self, "Download Key Command", value="aws secretsmanager get-secret-value --secret-id ec2-ssh-key/cdk-kCODE
HIGH…nc-graphql-dynamodb/app_sync_cdk/app_sync_cdk_stack.py140 "nextToken": $util.toJson($util.defaultIfNullOrEmpty($ctx.args.nextToken, null))CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…k/elasticbeanstalk-bg-pipeline/resources/blue_green.py49Decodes the JSON user parameters and validates the required properties. Args: job_data: The job data structSTRING
HIGH…k/elasticbeanstalk-bg-pipeline/resources/blue_green.py43Decodes the JSON user parameters and validates the required properties. Args: job_data: The job data structuSTRING
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpython/rekognition-video-processor/setup.py12 description="A CDK Python app for demonstration purposes",CODE
LOW…/athena-s3-glue/athena_s3_glue/athena_s3_glue_stack.py59 # creating the Glue Crawler that will automatically populate our Data Catalog. Don't forget to run the crawlerCOMMENT
MEDIUMpython/rekognition-lambda-s3-trigger/setup.py12 description="A CDK Python app for demonstration purposes",CODE
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…ventbridge-in-organization/lambda/producer/producer.py8logger = logging.getLogger(__name__)CODE
LOW…ventbridge-in-organization/lambda/consumer/consumer.py6logger = logging.getLogger(__name__)CODE
LOW…ssions-rest-api/stack/verified_permissions/__init__.py3__all__ = ["VerifiedPermissionsNested"]CODE
LOW…rest-api/stack/verified_permissions/policy/__init__.py4__all__ = ["create_admin_policy", "create_user_policy"]CODE
LOWpython/url-shortener/waltersco_common/__init__.py62__all__ = ["WaltersCoStack"]CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpython/iotcore/lambda/cert_handler.py41except ClientError:CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…gnition-video-processor/lambdas/process_video/index.py8CODE
LOWpython/image-content-search/src/imageData/main.py12CODE
LOWtypescript/secrets-manager-rotation/lambda/index.py15CODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…/image-content-search/src/imageData/helper/__init__.py32CODE
LOW…/image-content-search/src/imageData/helper/__init__.py42CODE
LOWpython/rds/aurora/aurora.py30CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtypescript/s3-vectors-lambda-bedrock/README.md1# S3 Vectors RAG Pipeline with Lambda and Amazon BedrockCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpython/opensearch/os-vpc-provision/bootstrap.sh21email_default="user@example.com"CODE
LOW…c-provision/os_vpc_provision/os_vpc_provision_stack.py30SNS_NOTIFICATION_EMAIL = "user@example.com"CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…/native-objects/native_objects/infrastructure_stack.py25 def main_function(self) -> lambda_.IFunction:CODE
LOW…ipt/postgres-lambda/lambda/postgres-to-lambda/index.js57function processData(data) {CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtypescript/batch-ecr-openmp/scripts/submit-job.sh86 echo " $0 --benchmark-type all # Run comprehensive 5-minute suite"CODE