awslabs / aws-config-rules
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 204 files with 100,135 lines of code.
    • 41 very long files (58,794 lines of code)
    • 10 long files (7,480 lines of code)
    • 102 medium size files (29,667 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,323 lines of code)
    • 34 very small files (1,871 lines of code)
58% | 7% | 29% | 2% | 1%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
yaml81% | 9% | 6% | 1% | <1%
py0% | 2% | 90% | 2% | 4%
PY0% | 0% | 100% | 0% | 0%
java0% | 0% | 0% | 78% | 21%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
aws-config-conformance-packs81% | 9% | 6% | 1% | <1%
python/IAM_IP_RESTRICTION0% | 100% | 0% | 0% | 0%
python/EBS_ENCRYPTED_VOLUMES_V20% | 0% | 100% | 0% | 0%
python/EMR_SECURITY_GROUPS_RESTRICTED0% | 0% | 100% | 0% | 0%
python/CLOUDTRAIL_ENABLED_V20% | 0% | 100% | 0% | 0%
python/IAM_USER_USED_LAST_90_DAYS0% | 0% | 100% | 0% | 0%
python/VPC_FLOW_LOGS_ENABLED_CUSTOM0% | 0% | 100% | 0% | 0%
python/API_GW_PRIVATE_RESTRICTED0% | 0% | 100% | 0% | 0%
python/IAM_USER_MFA_ENABLED0% | 0% | 100% | 0% | 0%
python/AMI_OUTDATED_CHECK0% | 0% | 100% | 0% | 0%
python/API_GW_RESTRICTED_IP0% | 0% | 100% | 0% | 0%
python/VPC_SG_OPEN_ONLY_TO_AUTHORIZED_PORTS0% | 0% | 100% | 0% | 0%
python/IAM_ACCESS_KEY_ROTATED0% | 0% | 100% | 0% | 0%
python/LAMBDA_CONCURRENCY_CHECK0% | 0% | 100% | 0% | 0%
python/VPC_ENDPOINT_DEFAULT_POLICY0% | 0% | 100% | 0% | 0%
python/BUSINESS_SUPPORT_OR_ABOVE_ENABLED0% | 0% | 100% | 0% | 0%
python/SNS_ENCRYPTED_TOPIC_CHECK0% | 0% | 100% | 0% | 0%
python/KMS_KEYS_TO_NOT_DELETE0% | 0% | 100% | 0% | 0%
python/ALB_HTTP_TO_HTTPS_REDIRECTION_CHECK0% | 0% | 100% | 0% | 0%
python/S3_PUBLIC_ACCESS_SETTINGS_FOR_ACCOUNT0% | 0% | 66% | 33% | 0%
python/ELASTICACHE_REDIS_CLUSTER_AUTO_BACKUP_CHECK0% | 0% | 100% | 0% | 0%
python/GUARDDUTY_UNTREATED_FINDINGS0% | 0% | 100% | 0% | 0%
python/IAM_ROLE_NO_POLICY_FULL_STAR0% | 0% | 100% | 0% | 0%
python/IAM_USER_NO_POLICY_FULL_STAR0% | 0% | 100% | 0% | 0%
python/EC2_SECURITY_GROUP_NOT_USED0% | 0% | 100% | 0% | 0%
python/IAM_GROUP_NO_POLICY_FULL_STAR0% | 0% | 100% | 0% | 0%
python/ECR_REPOSITORY_SCAN_ON_PUSH_CHECK0% | 0% | 100% | 0% | 0%
python/ELB_ALB_PREDEFINED_SSL_CHECK0% | 0% | 100% | 0% | 0%
python/EMR_KERBEROS_ENABLED0% | 0% | 100% | 0% | 0%
python/API_GW_AUTHORIZER_IN_PLACE0% | 0% | 100% | 0% | 0%
python/S3_VPC_ENDPOINT_ENABLED0% | 0% | 100% | 0% | 0%
python/EC2_SECURITY_GROUP_BADINGRESS0% | 0% | 100% | 0% | 0%
python/LAMBDA_CODE_IS_VERSIONED0% | 0% | 100% | 0% | 0%
python/EC2_TAG_MATCHES_INSTANCE_PROFILE_NAME0% | 0% | 100% | 0% | 0%
python/API_GW_NOT_EDGE_OPTIMISED0% | 0% | 100% | 0% | 0%
python/SQS_TRANSIT_ENCRYPTION_CHECK0% | 0% | 100% | 0% | 0%
python/SQS_PUBLIC_ACCESS_CHECK0% | 0% | 100% | 0% | 0%
python/LAMBDA_DLQ_CHECK0% | 0% | 100% | 0% | 0%
python/DYNAMODB_ENCRYPTED_CUSTOM0% | 0% | 100% | 0% | 0%
python/EMR_MASTER_NO_PUBLIC_IP0% | 0% | 100% | 0% | 0%
python/IAM_NO_USER0% | 0% | 100% | 0% | 0%
python/ELASTICSEARCH_IN_VPC_ONLY0% | 0% | 100% | 0% | 0%
python/AMI_OWNERID_CHECK0% | 0% | 100% | 0% | 0%
python/AMI_NOT_PUBLIC_CHECK0% | 0% | 100% | 0% | 0%
python/CLOUDTRAIL_S3_DATAEVENTS_ENABLED0% | 0% | 100% | 0% | 0%
python/ENTERPRISE_SUPPORT_PLAN_ENABLED0% | 0% | 100% | 0% | 0%
python/EBS_SNAPSHOT_PUBLIC_RESTORABLE_CHECK0% | 0% | 100% | 0% | 0%
python/SQS_ENCRYPTION_CHECK0% | 0% | 100% | 0% | 0%
python/ECS_ECRIMAGE_CHECK0% | 0% | 100% | 0% | 0%
python/SAGEMAKER_NOTEBOOK_NO_DIRECT_INTERNET_ACCESS0% | 0% | 100% | 0% | 0%
python/WAFV2_WEBACL_LOGGING_ENABLED0% | 0% | 100% | 0% | 0%
python/API_GW_EXECUTION_LOGGING_ENABLED0% | 0% | 100% | 0% | 0%
python/REST_API_GW_CUSTOMDOMAIN_CHECK0% | 0% | 100% | 0% | 0%
python/RDS_ENHANCED_MONITORING_ENABLED0% | 0% | 100% | 0% | 0%
python/IAM_POLICY_REQUIRED0% | 0% | 100% | 0% | 0%
python/VPC_ENDPOINT_MANUAL_ACCEPTANCE0% | 0% | 100% | 0% | 0%
python/IAM_USER_MATCHES_REGEX_PATTERN0% | 0% | 100% | 0% | 0%
python/IAM_USER_PERMISSION_BOUNDARY_CHECK0% | 0% | 100% | 0% | 0%
python/SHIELD_ADVANCED_ENABLED_AUTORENEW0% | 0% | 100% | 0% | 0%
python/INTERNET_GATEWAY_AUTHORIZED_ONLY0% | 0% | 100% | 0% | 0%
python/ECS_AWSLOGS_CHECK0% | 0% | 100% | 0% | 0%
python/S3_BUCKET_NAMING_CONVENTION0% | 0% | 100% | 0% | 0%
python/SECRETSMANAGER_MAX_SECRET_AGE0% | 0% | 100% | 0% | 0%
python/LAMBDA_ROLE_ALLOWED_ON_LOGGING0% | 0% | 100% | 0% | 0%
python/SAGEMAKER_NOTEBOOK_KMS_CONFIGURED0% | 0% | 100% | 0% | 0%
python/VPC_VPN_2_TUNNELS_UP0% | 0% | 100% | 0% | 0%
python/SAGEMAKER_ENDPOINT_CONFIG_KMS_KEY_CONFIGURED0% | 0% | 100% | 0% | 0%
python/SNS_TOPIC_EMAIL_SUB_IN_DOMAINS0% | 0% | 100% | 0% | 0%
python/EFS_ENCRYPTED_CHECK0% | 0% | 100% | 0% | 0%
python/EKS_LOGGING_CHECK0% | 0% | 100% | 0% | 0%
python/CLOUDWATCH_LOG_GROUP_ENCRYPTED0% | 0% | 100% | 0% | 0%
python/EKS_PUBLIC_ACCESS0% | 0% | 100% | 0% | 0%
python/ELB_DELETION_PROTECTION_ENABLED0% | 0% | 100% | 0% | 0%
python/CLOUDFRONT_LOGGING_ENABLED0% | 0% | 100% | 0% | 0%
python/ELASTICSEARCH_ENCRYPTED_AT_REST0% | 0% | 100% | 0% | 0%
python/INSTANCE_PROFILE_HAVE_DEFINED_POLICIES0% | 0% | 100% | 0% | 0%
python/API_GW_CACHE_ENABLED_AND_ENCRYPTED0% | 0% | 100% | 0% | 0%
python/CLOUDFRONT_WEBACL_CHECK0% | 0% | 100% | 0% | 0%
python/SHIELD_DRT_ACCESS0% | 0% | 100% | 0% | 0%
python/ROOT_NO_ACCESS_KEY0% | 0% | 100% | 0% | 0%
python/DMS_REPLICATION_NOT_PUBLIC0% | 0% | 100% | 0% | 0%
python/LAMBDA_INSIDE_VPC0% | 0% | 100% | 0% | 0%
python/CLOUDFRONT_VIEWER_POLICY_HTTPS0% | 0% | 100% | 0% | 0%
python/API_GW_ENDPOINT_TYPE_CHECK0% | 0% | 100% | 0% | 0%
python/EC2_INSTANCE_NO_PUBLIC_IP0% | 0% | 100% | 0% | 0%
python/' RDK parameters.json for AWS Managed Config Rules0% | 0% | 100% | 0% | 0%
python/REDSHIFT_CLUSTER_PUBLIC_ACCESS_CHECK0% | 0% | 100% | 0% | 0%
python0% | 0% | 0% | 22% | 77%
java/src0% | 0% | 0% | 78% | 21%
python-rdklib/AMI_DEPRECATED_CHECK0% | 0% | 0% | 100% | 0%
python-rdklib/EC2_INSTANCE_EBS_VOLUME_TAGS_MATCH0% | 0% | 0% | 41% | 58%
node0% | 0% | 0% | 0% | 100%
python-rdklib/SECURITYHUB_ENABLED0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Operational-Best-Practices-for-CMMC-Level-3.yaml
in aws-config-conformance-packs
2643 -
Operational-Best-Practices-for-ABS-CCIGv2-Material.yaml
in aws-config-conformance-packs
1585 -
Operational-Best-Practices-for-FedRAMP.yaml
in aws-config-conformance-packs
1583 -
Operational-Best-Practices-for-NCSC-CAF.yaml
in aws-config-conformance-packs
1578 -
Operational-Best-Practices-for-FFIEC.yaml
in aws-config-conformance-packs
1569 -
Operational-Best-Practices-for-HIPAA-Security.yaml
in aws-config-conformance-packs
1566 -
Operational-Best-Practices-for-APRA-CPG-234.yaml
in aws-config-conformance-packs
1561 -
Operational-Best-Practices-for-BNM-RMiT.yaml
in aws-config-conformance-packs
1559 -
Operational-Best-Practices-for-CMMC-Level-5.yaml
in aws-config-conformance-packs
1555 -
Operational-Best-Practices-for-CMMC-Level-4.yaml
in aws-config-conformance-packs
1555 -
Operational-Best-Practices-For-NIST-800-181.yaml
in aws-config-conformance-packs
1544 -
Operational-Best-Practices-for-NIST-800-53-rev-5.yaml
in aws-config-conformance-packs
1524 -
Operational-Best-Practices-for-NIST-Privacy-Framework.yaml
in aws-config-conformance-packs
1506 -
Operational-Best-Practices-for-NBC-TRMG.yaml
in aws-config-conformance-packs
1505 -
Operational-Best-Practices-for-MAS-TRMG.yaml
in aws-config-conformance-packs
1492 -
Operational-Best-Practices-for-CISA-Cyber-Essentials.yaml
in aws-config-conformance-packs
1489 -
Operational-Best-Practices-for-FedRAMP-Low.yaml
in aws-config-conformance-packs
1484 -
Operational-Best-Practices-for-ABS-CCIGv2-Standard.yaml
in aws-config-conformance-packs
1476 -
Operational-Best-Practices-for-NCSC-CloudSec-Principles.yaml
in aws-config-conformance-packs
1453 -
Operational-Best-Practices-for-ACSC-ISM.yaml
in aws-config-conformance-packs
1440 -
Operational-Best-Practices-for-ACSC-Essential8.yaml
in aws-config-conformance-packs
1431 -
Operational-Best-Practices-for-NIST-1800-25.yaml
in aws-config-conformance-packs
1417 -
Operational-Best-Practices-for-KISMS.yaml
in aws-config-conformance-packs
1412 -
Operational-Best-Practices-for-NIST-CSF.yaml
in aws-config-conformance-packs
1398 -
Operational-Best-Practices-for-CMMC-Level-2.yaml
in aws-config-conformance-packs
1384 -
Operational-Best-Practices-for-NYDFS-23-NYCRR-500.yaml
in aws-config-conformance-packs
1360 -
Operational-Best-Practices-for-FDA-21CFR-Part-11.yaml
in aws-config-conformance-packs
1353 -
Operational-Best-Practices-for-PCI-DSS.yaml
in aws-config-conformance-packs
1319 -
Operational-Best-Practices-for-CIS-Critical-Security-Controls-v8-IG3.yaml
in aws-config-conformance-packs
1315 -
Operational-Best-Practices-for-RBI-MasterDirection.yaml
in aws-config-conformance-packs
1303 -
Operational-Best-Practices-for-CCN-ENS-High.yaml
in aws-config-conformance-packs
1298 -
Operational-Best-Practices-for-CIS-Critical-Security-Controls-v8-IG2.yaml
in aws-config-conformance-packs
1295 -
Operational-Best-Practices-for-AWS-Well-Architected-Security-Pillar.yaml
in aws-config-conformance-packs
1295 -
Operational-Best-Practices-for-NIST-800-53-rev-4.yaml
in aws-config-conformance-packs
1292 -
Operational-Best-Practices-for-NIST-800-171.yaml
in aws-config-conformance-packs
1289 -
Operational-Best-Practices-for-NERC-CIP.yaml
in aws-config-conformance-packs
1288 -
Operational-Best-Practices-for-CCN-ENS-Low.yaml
in aws-config-conformance-packs
1228 -
Operational-Best-Practices-for-CCN-ENS-Medium.yaml
in aws-config-conformance-packs
1219 -
Operational-Best-Practices-for-RBI-Basic-Cyber-Security-Framework.yaml
in aws-config-conformance-packs
1137 -
Operational-Best-Practices-for-CIS-Top20.yaml
in aws-config-conformance-packs
1067 -
Operational-Best-Practices-for-ENISA-Cybersecurity-Guide.yaml
in aws-config-conformance-packs
1027 -
Operational-Best-Practices-for-NZISM.yaml
in aws-config-conformance-packs
973 -
Operational-Best-Practices-for-CIS-Critical-Security-Controls-v8-IG1.yaml
in aws-config-conformance-packs
931 -
Operational-Best-Practices-for-CMMC-Level-1.yaml
in aws-config-conformance-packs
854 -
Operational-Best-Practices-for-MAS-Notice-655.yaml
in aws-config-conformance-packs
782 -
Operational-Best-Practices-for-NIST-800-172.yaml
in aws-config-conformance-packs
770 -
Operational-Best-Practices-for-CIS-AWS-v1.4-Level2.yaml
in aws-config-conformance-packs
734 -
Operational-Best-Practices-for-Security-Services.yaml
in aws-config-conformance-packs
672 -
Operational-Best-Practices-for-CIS-AWS-FB-v1.3-Level2.yaml
in aws-config-conformance-packs
616 -
Operational-Best-Practices-for-CIS-AWS-v1.4-Level1.yaml
in aws-config-conformance-packs
589 -
Files With Most Units (Top 20)
File# lines# units
IAM_IP_RESTRICTION.py
in python/IAM_IP_RESTRICTION
559 43
IAM_USER_USED_LAST_90_DAYS.py
in python/IAM_USER_USED_LAST_90_DAYS
392 28
EMR_SECURITY_GROUPS_RESTRICTED.py
in python/EMR_SECURITY_GROUPS_RESTRICTED
404 27
API_GW_RESTRICTED_IP.py
in python/API_GW_RESTRICTED_IP
366 26
IAM_POLICY_REQUIRED.py
in python/IAM_POLICY_REQUIRED
271 26
VPC_SG_OPEN_ONLY_TO_AUTHORIZED_PORTS.py
in python/VPC_SG_OPEN_ONLY_TO_AUTHORIZED_PORTS
355 26
EBS_ENCRYPTED_VOLUMES_V2.py
in python/EBS_ENCRYPTED_VOLUMES_V2
485 25
API_GW_PRIVATE_RESTRICTED.py
in python/API_GW_PRIVATE_RESTRICTED
375 25
ALB_HTTP_TO_HTTPS_REDIRECTION_CHECK.py
in python/ALB_HTTP_TO_HTTPS_REDIRECTION_CHECK
317 25
API_GW_AUTHORIZER_IN_PLACE.py
in python/API_GW_AUTHORIZER_IN_PLACE
296 24
ELB_ALB_PREDEFINED_SSL_CHECK.py
in python/ELB_ALB_PREDEFINED_SSL_CHECK
297 23
VPC_ENDPOINT_DEFAULT_POLICY.py
in python/VPC_ENDPOINT_DEFAULT_POLICY
334 23
ECR_REPOSITORY_SCAN_ON_PUSH_CHECK.py
in python/ECR_REPOSITORY_SCAN_ON_PUSH_CHECK
303 23
EC2_SECURITY_GROUP_BADINGRESS.py
in python/EC2_SECURITY_GROUP_BADINGRESS
289 23
IAM_ROLE_NO_POLICY_FULL_STAR.py
in python/IAM_ROLE_NO_POLICY_FULL_STAR
304 22
IAM_USER_NO_POLICY_FULL_STAR.py
in python/IAM_USER_NO_POLICY_FULL_STAR
304 22
IAM_ACCESS_KEY_ROTATED.py
in python/IAM_ACCESS_KEY_ROTATED
342 22
S3_VPC_ENDPOINT_ENABLED.py
in python/S3_VPC_ENDPOINT_ENABLED
291 22
GUARDDUTY_UNTREATED_FINDINGS.py
in python/GUARDDUTY_UNTREATED_FINDINGS
306 22
ELASTICACHE_REDIS_CLUSTER_AUTO_BACKUP_CHECK.py
in python/ELASTICACHE_REDIS_CLUSTER_AUTO_BACKUP_CHECK
311 22
Files With Long Lines (Top 20)

There are 141 files with lines longer than 120 characters. In total, there are 1388 long lines.

File# lines# units# long lines
Operational-Best-Practices-for-NZISM.yaml
in aws-config-conformance-packs
973 - 67
VPC_FLOW_LOGS_ENABLED_CUSTOM.py
in python/VPC_FLOW_LOGS_ENABLED_CUSTOM
375 21 30
S3_PUBLIC_ACCESS_SETTINGS_FOR_ACCOUNT.PY
in python/S3_PUBLIC_ACCESS_SETTINGS_FOR_ACCOUNT
311 20 22
ELASTICACHE_REDIS_CLUSTER_AUTO_BACKUP_CHECK.py
in python/ELASTICACHE_REDIS_CLUSTER_AUTO_BACKUP_CHECK
311 22 20
VPC_SG_OPEN_ONLY_TO_AUTHORIZED_PORTS.py
in python/VPC_SG_OPEN_ONLY_TO_AUTHORIZED_PORTS
355 26 19
RDS_ENHANCED_MONITORING_ENABLED.py
in python/RDS_ENHANCED_MONITORING_ENABLED
271 19 17
KMS_KEYS_TO_NOT_DELETE.py
in python/KMS_KEYS_TO_NOT_DELETE
317 20 17
GUARDDUTY_UNTREATED_FINDINGS.py
in python/GUARDDUTY_UNTREATED_FINDINGS
306 22 17
EMR_KERBEROS_ENABLED.py
in python/EMR_KERBEROS_ENABLED
297 21 17
SQS_TRANSIT_ENCRYPTION_CHECK.py
in python/SQS_TRANSIT_ENCRYPTION_CHECK
286 21 17
SQS_PUBLIC_ACCESS_CHECK.py
in python/SQS_PUBLIC_ACCESS_CHECK
286 21 17
API_GW_EXECUTION_LOGGING_ENABLED.py
in python/API_GW_EXECUTION_LOGGING_ENABLED
274 19 17
EMR_SECURITY_GROUPS_RESTRICTED.py
in python/EMR_SECURITY_GROUPS_RESTRICTED
404 27 16
Operational-Best-Practices-for-CIS-AWS-FB-v1.3-Level2.yaml
in aws-config-conformance-packs
616 - 16
REST_API_GW_CUSTOMDOMAIN_CHECK.py
in python/REST_API_GW_CUSTOMDOMAIN_CHECK
273 21 15
CLOUDTRAIL_ENABLED_V2.py
in python/CLOUDTRAIL_ENABLED_V2
401 21 15
ECS_ECRIMAGE_CHECK.py
in python/ECS_ECRIMAGE_CHECK
275 21 15
IAM_USER_USED_LAST_90_DAYS.py
in python/IAM_USER_USED_LAST_90_DAYS
392 28 15
VPC_ENDPOINT_DEFAULT_POLICY.py
in python/VPC_ENDPOINT_DEFAULT_POLICY
334 23 15
API_GW_CACHE_ENABLED_AND_ENCRYPTED.py
in python/API_GW_CACHE_ENABLED_AND_ENCRYPTED
244 19 15