InfraScan Cloud

Repository scan

substation

brexhq/substation · branch main · scanned 25 Jun 2026 · 89 resources

COverall
CSecurity
–Reliability · N/A
BCost
28findings · 0 critical, 1 high
$6.15–$41.75estimated savings per month, from the code

High 1

High Expensive NAT Gateway Cost · 1 place

NAT Gateways are expensive managed services. Ensure they are strictly necessary.

How to fix

Consider using VPC Endpoints, NAT Instances for non-critical workloads, or share a single NAT Gateway across multiple subnets.

Where

Medium 26

Medium Ensure AWS API gateway request is validated Security · 2 places
Medium Ensure Create before destroy for API deployments Security · 2 places
Medium Ensure Create before destroy for API Gateway Security · 2 places
Medium Ensure there is no open access to back-end resources through API Security · 2 places
Medium API Gateway REST Instead of HTTP API Cost · 2 places

aws_api_gateway_rest_api (REST API) costs ~3.5x more per million requests than aws_apigatewayv2_api (HTTP API). Most modern use cases are supported by the HTTP API.

How to fix

Migrate to aws_apigatewayv2_api (HTTP API v2) unless REST-specific features (usage plans, request validation, custom authorizers v1) are required.

Where

Medium Ensure VPC flow logging is enabled in all VPCs Security · 1 place

Ensure VPC flow logging is enabled in all VPCs

Documentation

Where

Medium Ensure the default security group of every VPC restricts all traffic Security · 1 place

Ensure the default security group of every VPC restricts all traffic

Documentation

Where

Medium Ensure Secrets Manager secrets should have automatic rotation enabled Security · 1 place

Ensure Secrets Manager secrets should have automatic rotation enabled

Documentation

Where

Medium Ensure that S3 bucket has a Public Access block Security · 1 place

Ensure that S3 bucket has a Public Access block

Documentation

Where

Medium Ensure that an S3 bucket has a lifecycle configuration Security · 1 place

Ensure that an S3 bucket has a lifecycle configuration

Documentation

Where

Medium Ensure S3 buckets should have event notifications enabled Security · 1 place

Ensure S3 buckets should have event notifications enabled

Documentation

Where

Medium Ensure access control lists for S3 buckets are disabled Security · 1 place

Ensure access control lists for S3 buckets are disabled

Documentation

Where

Medium Ensure that AWS Lambda function is configured for function-level concurrent execution limit Security · 1 place

Ensure that AWS Lambda function is configured for function-level concurrent execution limit

Documentation

Where

Medium Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ) Security · 1 place

Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)

Documentation

Where

Medium Ensure that S3 bucket has cross-region replication enabled Security · 1 place

Ensure that S3 bucket has cross-region replication enabled

Documentation

Where

Medium Ensure the S3 bucket has access logging enabled Security · 1 place

Ensure the S3 bucket has access logging enabled

Documentation

Where

Medium Ensure all data stored in the S3 bucket have versioning enabled Reliability · 1 place

Ensure all data stored in the S3 bucket have versioning enabled

Documentation

Where

Medium Ensure AWS Lambda function is configured to validate code-signing Security · 1 place

Ensure AWS Lambda function is configured to validate code-signing

Documentation

Where

Medium Ensure that AWS Lambda function permissions delegated to AWS services are limited by SourceArn or SourceAccount Security · 1 place

Ensure that AWS Lambda function permissions delegated to AWS services are limited by SourceArn or SourceAccount

Documentation

Where

Medium DynamoDB Provisioned Mode Cost · 1 place

Provisioned capacity mode charges for capacity regardless of usage. On-demand is often cheaper for irregular workloads.

How to fix

Switch to On-Demand billing mode if traffic is unpredictable.

Where

Medium Missing S3 Lifecycle Policy Cost · 1 place

S3 bucket without lifecycle rules. Objects are retained indefinitely, increasing storage costs.

How to fix

Define lifecycle rules to transition objects to cheaper storage classes (e.g., Glacier) or delete them after a retention period.

Where

Low 1

Low Unassociated Elastic IP Cost · 1 place

Elastic IPs are charged if not attached to a running instance or if you have more than one per instance.

How to fix

Release unattached Elastic IPs.

Where

Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository on 25 Jun 2026; it may have changed since.

Scan your own repository

InfraScan Cloud scans your repositories and AWS accounts, keeps the history and shows how to fix each finding.