Repository scan
Repository
branch main
High 1
High Missing AWS Budget
No AWS budget configured. Budgets help monitor and control spending with alerts.
How to fix
Create AWS budgets with alerts for forecasted and actual costs to avoid unexpected charges.
Where
- terraform/aws/provider.tf:1
Medium 19
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
- ../../terraform/aws/iam.tf:28
- ../../terraform/aws/iam.tf:44
Medium Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Where
- ../../terraform/aws/iam.tf:28
- ../../terraform/aws/iam.tf:44
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../terraform/aws/main.tf:24
Medium Ensure that S3 bucket has a Public Access block
Medium Ensure that an S3 bucket has a lifecycle configuration
Ensure that an S3 bucket has a lifecycle configuration
Where
- ../../terraform/aws/main.tf:1
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
- ../../terraform/aws/main.tf:1
Medium Ensure IAM policies does not allow permissions management / resource exposure without constraints
Ensure IAM policies does not allow permissions management / resource exposure without constraints
Where
- ../../terraform/aws/iam.tf:44
Medium Ensure IAM policies does not allow privilege escalation
Ensure IAM policies does not allow privilege escalation
Where
- ../../terraform/aws/iam.tf:44
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
- ../../terraform/aws/main.tf:1
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
- ../../terraform/aws/main.tf:1
Medium Ensure the S3 bucket has access logging enabled
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
- ../../terraform/aws/main.tf:24
Medium Ensure no security groups allow egress from 0.0.0.0:0 to port -1
Ensure no security groups allow egress from 0.0.0.0:0 to port -1
Where
- ../../terraform/aws/main.tf:24
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../terraform/aws/main.tf:62
Medium Missing S3 Lifecycle Policy
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
- terraform/aws/main.tf:1
Medium Missing Spot Instance Usage
No spot instances detected. Spot instances can save 50-90% on compute costs for interruptible workloads.
How to fix
Use spot instances for batch jobs, data analysis, and optional tasks. Consider aws_spot_instance_request or spot_price in launch templates.
Where
- terraform/aws/main.tf:67
Medium Missing Cost and Usage Report
No AWS Cost and Usage Report (CUR) configured. CUR provides detailed cost tracking and analysis.
How to fix
Enable AWS Cost and Usage Reports to track spending patterns and identify optimization opportunities.
Where
- terraform/aws/provider.tf:1
Low 2
Low Elastic IP Usage
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
- terraform/aws/eip.tf:1
Low EC2 Detailed Monitoring
Detailed monitoring for EC2 instances incurs extra costs.
How to fix
Disable detailed monitoring if standard 5-minute metrics are sufficient.
Where
- terraform/aws/main.tf:69
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository; 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.