Repository scan
le-tf-infra-aws
binbashar/le-tf-infra-aws · branch main · scanned 17 Mar 2026 · 596 resources
High 157
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
- data-science/global/base-identities/config.tf:4
- data-science/us-east-1/airflow-- /config.tf:4
- data-science/us-east-1/base-network/config.tf:4
- data-science/us-east-1/genai-llm-rag-bedrock-poc--/config.tf:4
- data-science/us-east-1/bedrock-kyb-bda/config.tf:29
- data-science/us-east-1/workflow-order-processing--/config.tf:4
- data-science/us-east-1/security-base/config.tf:4
- data-science/us-east-1/databases-aurora-mysql--/config.tf:4
- data-science/us-east-1/airflow-scheduled--/config.tf:4
- data-science/us-east-1/lakehouse-demo--/config.tf:4
- data-science/us-east-1/secrets-manager/config.tf:4
- data-science/us-east-1/datalake-demo--/config.tf:4
- data-science/us-east-1/bedrock-agent--/config.tf:34
- data-science/us-east-1/genai-llm-rag-bedrock-full--/config.tf:4
- data-science/us-east-1/notifications/config.tf:4
- data-science/us-east-1/base-tf-backend/config.tf:5
- data-science/us-east-1/security-keys/config.tf:4
- data-science/us-east-1/security-certs/config.tf:4
- network/us-east-2/base-network/config.tf:4
- network/us-east-2/security-compliance --/config.tf:4
- and 134 more
High Old Generation Instance
Usage of old generation EC2 instances (e.g., t2, m3, c4, r3). Newer generations are often cheaper and faster.
How to fix
Upgrade to current generation instances (e.g., t3, m5, c5, r5).
Where
High Unencrypted EBS Volume
EBS volume is not encrypted. This is a security risk and often indicates unmanaged infrastructure.
How to fix
Enable encryption for EBS volumes.
Where
Medium 808
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../apps-devstg/global/base-identities/account.tf:4
- ../../apps-devstg/global/base-identities/groups.tf:4
- ../../apps-devstg/global/base-identities/roles.tf:8
- ../../apps-devstg/global/base-identities/roles.tf:34
- ../../apps-devstg/global/base-identities/roles.tf:61
- ../../apps-devstg/global/base-identities/roles.tf:88
- ../../apps-devstg/global/base-identities/roles.tf:113
- ../../apps-devstg/global/base-identities/roles.tf:149
- ../../apps-devstg/global/base-identities/roles.tf:174
- ../../apps-devstg/global/base-identities/roles.tf:197
- ../../apps-devstg/global/base-identities/roles.tf:220
- ../../apps-devstg/global/base-identities/roles.tf:243
- ../../apps-devstg/global/base-identities/roles.tf:270
- ../../apps-devstg/global/base-identities/roles.tf:296
- ../../apps-devstg/global/base-identities/users.tf:10
- ../../apps-devstg/global/cli-test-layer/roles.tf:8
- ../../apps-devstg/us-east-1/alb-logs-s3-bucket --/bucket.tf:4
- ../../apps-devstg/us-east-1/aws-cloudwatch-synthetics --/canaries.tf:1
- ../../apps-devstg/us-east-1/aws-cloudwatch-synthetics --/s3.tf:1
- ../../apps-devstg/us-east-1/backups --/main.tf:1
- and 402 more
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
- data-science/global/base-identities/config.tf:4
- data-science/us-east-1/airflow-- /config.tf:4
- data-science/us-east-1/base-network/config.tf:4
- data-science/us-east-1/genai-llm-rag-bedrock-poc--/config.tf:4
- data-science/us-east-1/bedrock-kyb-bda/config.tf:29
- data-science/us-east-1/workflow-order-processing--/config.tf:4
- data-science/us-east-1/security-base/config.tf:4
- data-science/us-east-1/databases-aurora-mysql--/config.tf:4
- data-science/us-east-1/airflow-scheduled--/config.tf:4
- data-science/us-east-1/lakehouse-demo--/config.tf:4
- data-science/us-east-1/secrets-manager/config.tf:4
- data-science/us-east-1/datalake-demo--/config.tf:4
- data-science/us-east-1/bedrock-agent--/config.tf:34
- data-science/us-east-1/genai-llm-rag-bedrock-full--/config.tf:4
- data-science/us-east-1/notifications/config.tf:4
- data-science/us-east-1/base-tf-backend/config.tf:5
- data-science/us-east-1/security-keys/config.tf:4
- data-science/us-east-1/security-certs/config.tf:4
- network/us-east-2/base-network/config.tf:4
- network/us-east-2/security-compliance --/config.tf:4
- and 134 more
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
- ../../apps-devstg/global/base-identities/policies.tf:501
- ../../apps-devstg/us-east-1/k8s-eks-demoapps/secrets/secrets.tf:18
- ../../apps-devstg/us-east-1/secrets-manager/secrets.tf:45
- ../../apps-devstg/us-east-1/security-keys/kms.tf:17
- ../../apps-devstg/us-east-2/security-keys/kms.tf:16
- ../../apps-prd/global/base-identities/policies.tf:244
- ../../apps-prd/us-east-1/security-keys/kms.tf:16
- ../../data-science/global/base-identities/policies.tf:260
- ../../data-science/us-east-1/secrets-manager/secrets.tf:45
- ../../data-science/us-east-1/security-keys/kms.tf:16
- ../../management/global/base-identities/policies.tf:15
- ../../management/global/sso/policies.tf:4
- ../../management/global/sso/policies.tf:216
- ../../management/us-east-1/security-keys/kms.tf:16
- ../../network/global/base-identities/policies.tf:260
- ../../network/us-east-1/security-keys/kms.tf:16
- ../../network/us-east-2/security-keys/kms.tf:16
- ../../security/global/base-identities/role_policies.tf:131
- ../../security/us-east-1/security-keys/kms.tf:16
- ../../shared/global/base-identities/policies.tf:314
- and 4 more
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
- ../../apps-devstg/global/base-identities/policies.tf:193
- ../../apps-devstg/global/base-identities/policies.tf:238
- ../../apps-devstg/global/base-identities/policies.tf:441
- ../../apps-devstg/global/base-identities/policies.tf:537
- ../../apps-devstg/us-east-1/k8s-eks-demoapps/identities/ids_argo_cd_image_updater.tf:25
- ../../apps-devstg/us-east-1/k8s-eks-demoapps/identities/ids_aws_lb_controller.tf:21
- ../../apps-devstg/us-east-1/k8s-eks-demoapps/identities/ids_externaldns_aws.binbash.com.ar.tf:25
- ../../apps-devstg/us-east-1/k8s-eks-demoapps/identities/ids_externaldns_aws.binbash.com.ar.tf:80
- ../../apps-devstg/us-east-1/k8s-eks-demoapps/identities/ids_grafana.tf:21
- ../../apps-prd/global/base-identities/policies.tf:187
- ../../apps-prd/global/base-identities/policies.tf:280
- ../../data-science/global/base-identities/policies.tf:203
- ../../data-science/us-east-1/lakehouse-demo--/redshift.tf:90
- ../../management/global/base-identities/policies.tf:63
- ../../network/global/base-identities/policies.tf:203
- ../../shared/us-east-1/tools-eskibana --/security.tf:29
- ../../shared/us-east-1/tools-prometheus-grafana --/security.tf:29
- ../../shared/us-east-1/tools-vault --/security.tf:29
- ../../shared/us-east-2/tools-eskibana --/security.tf:29
- ../../shared/us-east-2/tools-prometheus-grafana --/security.tf:29
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../apps-devstg/us-east-1/aws-cloudwatch-synthetics --/sg.tf:3
- ../../apps-devstg/us-east-1/base-network/network.tf:108
- ../../apps-devstg/us-east-1/base-network/network.tf:135
- ../../apps-devstg/us-east-1/databases-mysql --/db_mysql.tf:4
- ../../apps-devstg/us-east-1/databases-pgsql --/db_postgres.tf:15
- ../../apps-devstg/us-east-1/k8s-eks-demoapps/network/network.tf:79
- ../../apps-devstg/us-east-1/tools-apigw-apps-proxy --/main.tf:87
- ../../apps-prd/us-east-1/base-network/network.tf:108
- ../../apps-prd/us-east-1/base-network/network.tf:135
- ../../data-science/us-east-1/genai-llm-rag-bedrock-full--/opensearch.tf:84
- ../../network/us-east-1/base-network/network.tf:83
- ../../network/us-east-2/base-network/network.tf:83
- ../../shared/us-east-1/base-network/network.tf:106
- ../../shared/us-east-1/base-network/network.tf:133
- ../../shared/us-east-1/storage/object-file-shares-sftp-transfer-service --/transfer-servers.tf:50
- ../../shared/us-east-1/tools-managedeskibana --/security.tf:1
- ../../shared/us-east-1/tools-uptime-monitoring/canaries.tf:39
- ../../shared/us-east-2/base-network/network.tf:107
- ../../shared/us-east-2/base-network/network.tf:134
Medium Ensure AWS IAM policy does not allow full IAM privileges
Ensure AWS IAM policy does not allow full IAM privileges
Where
- ../../apps-devstg/global/base-identities/policies.tf:8
- ../../apps-devstg/global/base-identities/policies.tf:135
- ../../apps-prd/global/base-identities/policies.tf:8
- ../../apps-prd/global/base-identities/policies.tf:131
- ../../data-science/global/base-identities/policies.tf:8
- ../../data-science/global/base-identities/policies.tf:143
- ../../management/global/base-identities/role_policies.tf:4
- ../../network/global/base-identities/policies.tf:8
- ../../network/global/base-identities/policies.tf:143
- ../../security/global/base-identities/role_policies.tf:8
- ../../security/global/base-identities/role_policies.tf:170
- ../../shared/global/base-identities/policies.tf:8
- ../../shared/global/base-identities/policies.tf:147
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
- ../../apps-devstg/us-east-1/security-keys/kms.tf:17
- ../../apps-devstg/us-east-2/security-keys/kms.tf:16
- ../../apps-prd/us-east-1/security-keys/kms.tf:16
- ../../data-science/us-east-1/security-keys/kms.tf:16
- ../../management/global/sso/policies.tf:4
- ../../management/global/sso/policies.tf:216
- ../../management/us-east-1/security-keys/kms.tf:16
- ../../network/us-east-1/security-keys/kms.tf:16
- ../../network/us-east-2/security-keys/kms.tf:16
- ../../security/us-east-1/security-keys/kms.tf:16
- ../../shared/us-east-1/security-keys/kms.tf:16
- ../../shared/us-east-2/security-keys/kms.tf:16
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
- ../../apps-devstg/us-east-1/security-keys/kms.tf:17
- ../../apps-devstg/us-east-2/security-keys/kms.tf:16
- ../../apps-prd/us-east-1/security-keys/kms.tf:16
- ../../data-science/us-east-1/security-keys/kms.tf:16
- ../../management/us-east-1/security-keys/kms.tf:16
- ../../network/us-east-1/security-keys/kms.tf:16
- ../../network/us-east-2/security-keys/kms.tf:16
- ../../security/us-east-1/security-keys/kms.tf:16
- ../../shared/us-east-1/security-keys/kms.tf:16
- ../../shared/us-east-2/security-keys/kms.tf:16
Medium DynamoDB Provisioned Mode
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
- data-science/us-east-1/workflow-order-processing--/databases.tf:10
- data-science/us-east-1/workflow-order-processing--/databases.tf:31
- data-science/us-east-1/base-tf-backend/main.tf:30
- network/us-east-1/base-tf-backend/main.tf:30
- apps-devstg/us-east-1/base-tf-backend/main.tf:30
- management/us-east-1/base-tf-backend/main.tf:30
- shared/us-east-1/base-tf-backend/main.tf:31
- apps-prd/us-east-1/base-tf-backend/main.tf:30
- security/us-east-1/base-tf-backend/main.tf:30
Medium Ensure the S3 bucket has access logging enabled
Ensure the S3 bucket has access logging enabled
Where
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:9
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:127
- ../../data-science/us-east-1/bedrock-agent--/s3.tf:5
- ../../data-science/us-east-1/bedrock-kyb-bda/s3.tf:1
- ../../data-science/us-east-1/bedrock-kyb-bda/s3.tf:6
- ../../security/us-east-2/security-audit/awscloudtrail_replication.tf:7
- ../../security/us-east-2/security-compliance --/awsconfig_replication.tf:7
- ../../shared/us-east-1/storage/backup-gdrive --/bucket_gdrive.tf:7
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:9
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:127
- ../../data-science/us-east-1/bedrock-agent--/s3.tf:5
- ../../data-science/us-east-1/bedrock-kyb-bda/s3.tf:6
- ../../security/us-east-2/security-audit/awscloudtrail_replication.tf:7
- ../../security/us-east-2/security-compliance --/awsconfig_replication.tf:7
- ../../shared/us-east-1/storage/backup-gdrive --/bucket_gdrive.tf:7
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:9
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:127
- ../../data-science/us-east-1/bedrock-agent--/s3.tf:5
- ../../data-science/us-east-1/bedrock-kyb-bda/s3.tf:1
- ../../data-science/us-east-1/bedrock-kyb-bda/s3.tf:6
- ../../security/us-east-2/security-compliance --/awsconfig_replication.tf:7
- ../../shared/us-east-1/storage/backup-gdrive --/bucket_gdrive.tf:7
Medium Ensure that S3 bucket has a Public Access block
Ensure that S3 bucket has a Public Access block
Where
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:9
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:127
- ../../security/us-east-2/security-audit/awscloudtrail_replication.tf:7
- ../../security/us-east-2/security-compliance --/awsconfig_replication.tf:7
- ../../shared/us-east-1/storage/backup-gdrive --/bucket_gdrive.tf:7
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:9
- ../../apps-devstg/us-east-1/k8s-kops --/1-prerequisites/s3.tf:127
- ../../security/us-east-2/security-audit/awscloudtrail_replication.tf:7
- ../../security/us-east-2/security-compliance --/awsconfig_replication.tf:7
- ../../shared/us-east-1/storage/backup-gdrive --/bucket_gdrive.tf:7
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../apps-devstg/us-east-1/security-firewall --/wafv2-regional.tf:213
- ../../apps-devstg/us-east-1/tools-apigw-apps-proxy --/main.tf:114
- ../../data-science/us-east-1/airflow-scheduled--/main.tf:129
- ../../data-science/us-east-1/bedrock-kyb-bda/lambda.tf:36
- ../../network/us-east-1/client-vpn/client-vpn.tf:41
Medium Ensure AWS ACM Certificate domain name does not include wildcards
Ensure AWS ACM Certificate domain name does not include wildcards
Where
Medium Ensure IAM policies does not allow data exfiltration
Ensure IAM policies does not allow data exfiltration
Where
Medium Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Where
Medium Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Where
Medium Ensure that AWS Lambda function is configured inside a VPC
Ensure that AWS Lambda function is configured inside a VPC
Where
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
Medium Ensure Create before destroy for ACM certificates
Ensure Create before destroy for ACM certificates
Where
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
Medium X-Ray tracing is enabled for Lambda
Medium Old Generation Storage (gp2)
Using gp2 EBS volumes when gp3 provides better performance at lower cost.
How to fix
Migrate from gp2 to gp3 volumes. gp3 offers 20% cost savings and better baseline performance.
Where
Medium Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances
Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances
Where
Medium Ensure Domain Name System Security Extensions (DNSSEC) signing is enabled for Amazon Route 53 public hosted zones
Ensure Domain Name System Security Extensions (DNSSEC) signing is enabled for Amazon Route 53 public hosted zones
Where
Medium Ensure Domain Name System (DNS) query logging is enabled for Amazon Route 53 hosted zones
Ensure Domain Name System (DNS) query logging is enabled for Amazon Route 53 hosted zones
Where
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
Medium Route53 A Record has Attached Resource
Route53 A Record has Attached Resource
Where
Medium Ensure that an S3 bucket has a lifecycle configuration
Ensure that an S3 bucket has a lifecycle configuration
Where
Medium Ensure all data stored in the S3 bucket have versioning enabled
Ensure all data stored in the S3 bucket have versioning enabled
Where
Medium Ensure no security groups allow ingress from 0.0.0.0:0 to port 22
Ensure no security groups allow ingress from 0.0.0.0:0 to port 22
Where
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
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
Medium Ensure that only encrypted EBS volumes are attached to EC2 instances
Ensure that only encrypted EBS volumes are attached to EC2 instances
Where
Medium Ensure AWS SQS uses CMK not AWS default keys for encryption
Ensure AWS SQS uses CMK not AWS default keys for encryption
Where
Medium Ensure EBS Volume is encrypted by KMS using a customer managed Key (CMK)
Ensure EBS Volume is encrypted by KMS using a customer managed Key (CMK)
Where
and 13 more groups with 13 findings
Low 9
Low Large Root Volume
Oversized root block device. Many workloads don't require large root volumes.
How to fix
Reduce root volume size to minimum required (typically 8-20 GB for most Linux instances).
Where
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
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
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository on 17 Mar 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.