awslabs / aws-well-architected-labs
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 232 files with 41,836 lines of code.
    • 7 very long files (8,922 lines of code)
    • 16 long files (9,190 lines of code)
    • 45 medium size files (13,436 lines of codeclsfd_ftr_w_mp_ins)
    • 39 small files (5,779 lines of code)
    • 125 very small files (4,509 lines of code)
21% | 21% | 32% | 13% | 10%
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
yaml32% | 26% | 33% | 7% | <1%
css29% | 27% | 28% | 0% | 15%
py0% | 16% | 23% | 38% | 21%
yml0% | 20% | 50% | 16% | 13%
ts0% | 0% | 100% | 0% | 0%
js0% | 0% | 51% | 28% | 19%
ps10% | 0% | 62% | 0% | 37%
html0% | 0% | 0% | 29% | 70%
cs0% | 0% | 0% | 47% | 52%
java0% | 0% | 0% | 59% | 40%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
static/Security32% | 34% | 20% | 10% | 2%
static/Reliability23% | 25% | 24% | 21% | 4%
static/Common75% | 0% | 10% | 5% | 8%
themes/learn25% | 11% | 24% | 5% | 32%
static/watool0% | 34% | 39% | 21% | 5%
static/Operations0% | 33% | 41% | 14% | 10%
static/css0% | 100% | 0% | 0% | 0%
static/Cost0% | 0% | 69% | 11% | 18%
static/Performance0% | 0% | 100% | 0% | 0%
static/Sustainability0% | 0% | 100% | 0% | 0%
deployment0% | 0% | 100% | 0% | 0%
static/wapartners0% | 0% | 0% | 40% | 59%
layouts/partials0% | 0% | 0% | 81% | 18%
layouts/shortcodes0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
layouts/_default0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
vpc-alb-app-db.yaml
in static/Common/Create_VPC_Stack/Code
1969 -
workload.yaml
in static/Reliability/200_Backup_Restore_Failback_Analytics/Code/cfn
1656 -
HotStandby.yaml
in static/Reliability/Disaster_Recovery/Code
1148 -
theme.css
in themes/learn/static/css
1107 -
waf-global.yaml
in static/Security/200_CloudFront_with_WAF_Protection/Code
1014 -
waf-global.yaml
in static/Security/200_Automated_Deployment_of_Web_Application_Firewall/Code
1014 -
waf-regional.yaml
in static/Security/200_Basic_EC2_with_WAF_Protection/Code
1014 -
dr-infra.yaml
in static/Reliability/200_Backup_Restore_Failback_Analytics/Code/cfn
925 -
playbook_investigate_application_resources.yml
in static/Operations/200_Automating_operations_with_playbooks_and_runbooks/Code/templates
763 -
cloudtrail-config-guardduty-securityhub.yaml
in static/Security/200_Automated_Deployment_of_Detective_Controls/Code
583 -
exportAnswersToXLSX.py
in static/watool/utilities/Code
578 14
cloudtrail-config-guardduty.yaml
in static/Security/200_Automated_Deployment_of_Detective_Controls/Code
568 -
WarmStandbyDR.yaml
in static/Reliability/Disaster_Recovery/Code
564 -
wordpress.yaml
in static/Security/200_Automated_Deployment_of_EC2_Web_Application/Code
547 -
duplicateWAFR.py
in static/watool/utilities/Code
535 22
baseline-iam.yaml
in static/Security/200_Automated_Deployment_of_IAM_Groups_and_Roles/Code
529 -
nucleus.css
in themes/learn/static/css
522 -
PilotLightDR.yaml
in static/Reliability/Disaster_Recovery/Code
519 -
section1-base.yaml
in static/Security/300_Multilayered_API_Security_with_Cognito_and_WAF/Code/templates/section1
514 -
dr-data.yaml
in static/Reliability/200_Backup_Restore_Failback_Analytics/Code/cfn
513 -
staticwebapp-active-passive.yaml
in static/Reliability/Common/Code/CloudFormation
512 -
theme-walabs.css
in static/css
511 -
vpc_athena_db_table_view_lambda.yaml
in static/Security/300_VPC_Flow_Logs_Analysis_Dashboard/code
507 -
staticwebapp.yaml
in static/Reliability/Common/Code/CloudFormation
489 -
organization_rightsizing_lambda.yaml
in static/Cost/300_Optimization_Data_Collection/Code
487 -
WindowsMachineDeploy.yaml
in static/Performance/100_Monitoring_Windows_EC2_CloudWatch/Code
483 -
BackupAndRestore.yaml
in static/Reliability/Disaster_Recovery/Code
472 -
base_app.yml
in static/Operations/200_Automating_operations_with_playbooks_and_runbooks/Code/templates
448 -
LabExample.py
in static/watool/200_Using_AWSCLI_To_Manage_WA_Reviews/Code
445 20
Optimization_Data_Collector.yaml
in static/Cost/300_Optimization_Data_Collection/Code
407 -
exportImportWAFR.py
in static/watool/utilities/Code
407 12
rds_util_template.yaml
in static/Cost/300_Optimization_Data_Collection/Code
393 -
staticwebapp.yaml
in static/Security/200_Automated_Deployment_of_EC2_Web_Application/Code
375 -
compute_optimizer.yaml
in static/Cost/300_Optimization_Data_Collection/Code
371 -
aws-usage-queries.ts
in static/Sustainability/300_cur_reports_as_efficiency_reports/lab3/code
362 3
mermaid.forest.css
in themes/learn/static/mermaid
340 -
section3-enhance_security.yaml
in static/Security/300_Multilayered_API_Security_with_Cognito_and_WAF/Code/templates/section3
312 -
ecs_data.yaml
in static/Cost/300_Optimization_Data_Collection/Code
299 -
optimisation_read_only_role.yaml
in static/Cost/300_Optimization_Data_Collection/Code
292 -
walabs.yaml
in deployment
286 -
app.js
in static/Operations/200_Automating_operations_with_playbooks_and_runbooks/Code/src
282 8
pattern1-app.yml
in static/Security/300_Autonomous_Monitoring_Of_Cryptographic_Activity_With_KMS/Code/templates/section2
281 -
deploy_web_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda
275 11
main.yaml
in static/Cost/300_Organization_Data_CUR_Connection/Code
274 -
LinuxMachineDeploy.yaml
in static/Performance/100_Monitoring_Linux_EC2_CloudWatch/Code
270 -
pattern3-application.yml
in static/Security/300_Autonomous_Patching_With_EC2_Image_Builder_and_Systems_Manager/Code/templates/section2
268 -
mermaid.dark.css
in themes/learn/static/mermaid
262 -
template.yaml
in static/Common/Code/Serverless-Todo/src/api
261 -
mermaid.css
in themes/learn/static/mermaid
260 -
deploy_dms_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/DMSLambda
257 9
Files With Most Units (Top 20)
File# lines# units
duplicateWAFR.py
in static/watool/utilities/Code
535 22
app.js
in static/Common/Code/Serverless-Todo/src/web
155 22
LabExample.py
in static/watool/200_Using_AWSCLI_To_Manage_WA_Reviews/Code
445 20
exportAnswersToXLSX.py
in static/watool/utilities/Code
578 14
exportImportWAFR.py
in static/watool/utilities/Code
407 12
update_multi_az_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/MultiAZDBLambda
185 11
deploy_web_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda
275 11
deploy_dms_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/DMSLambda
257 9
org_data_ou_man_tags.py
in static/Cost/300_Organization_Data_CUR_Connection/Code
82 8
org_data_ou_lnk_tags.py
in static/Cost/300_Organization_Data_CUR_Connection/Code
97 8
deploy_rds_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/RDSLambda
185 8
deploy_read_replica_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/ReadReplicaLambda
216 8
app.js
in static/Operations/200_Automating_operations_with_playbooks_and_runbooks/Code/src
282 8
index.py
in static/Cost/300_Optimization_Data_Collection/Code/source/fof
93 7
deploy_vpc_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/VPCLambda
154 7
wait_for_stack_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WaitForStackLambda
137 7
server_basic.py
in static/Reliability/300_Health_Checks_and_Dependencies/Code/Python
134 6
server_errorhandling.py
in static/Reliability/300_Health_Checks_and_Dependencies/Code/Python
141 6
server_healthcheck.py
in static/Reliability/300_Health_Checks_and_Dependencies/Code/Python
162 6
server_healthcheck.py
in static/Reliability/100_Deploy_CloudFormation/Code/Python
162 6
Files With Long Lines (Top 20)

There are 123 files with lines longer than 120 characters. In total, there are 758 long lines.

File# lines# units# long lines
organization_rightsizing_lambda.yaml
in static/Cost/300_Optimization_Data_Collection/Code
487 - 63
vpc_athena_db_table_view_lambda.yaml
in static/Security/300_VPC_Flow_Logs_Analysis_Dashboard/code
507 - 44
waf-global.yaml
in static/Security/200_CloudFront_with_WAF_Protection/Code
1014 - 42
waf-global.yaml
in static/Security/200_Automated_Deployment_of_Web_Application_Firewall/Code
1014 - 42
waf-regional.yaml
in static/Security/200_Basic_EC2_with_WAF_Protection/Code
1014 - 42
vpc-alb-app-db.yaml
in static/Common/Create_VPC_Stack/Code
1969 - 42
HotStandby.yaml
in static/Reliability/Disaster_Recovery/Code
1148 - 19
Optimization_Data_Collector.yaml
in static/Cost/300_Optimization_Data_Collection/Code
407 - 17
WindowsMachineDeploy.yaml
in static/Performance/100_Monitoring_Windows_EC2_CloudWatch/Code
483 - 17
ecs_data.yaml
in static/Cost/300_Optimization_Data_Collection/Code
299 - 16
logo.html
in themes/learn/exampleSite/layouts/partials
37 - 16
footer.html
in themes/learn/layouts/partials
66 - 13
exportAnswersToXLSX.py
in static/watool/utilities/Code
578 14 12
dr-data.yaml
in static/Reliability/200_Backup_Restore_Failback_Analytics/Code/cfn
513 - 12
deploy_web_lambda.py
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda
275 11 12
children.html
in themes/learn/layouts/shortcodes
86 - 12
AZFailover.cs
in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/FailureSimulations/c#/AppResiliency/AppResiliency
143 5 11
playbook_investigate_application_resources.yml
in static/Operations/200_Automating_operations_with_playbooks_and_runbooks/Code/templates
763 - 11
rds_util_template.yaml
in static/Cost/300_Optimization_Data_Collection/Code
393 - 10
compute_optimizer.yaml
in static/Cost/300_Optimization_Data_Collection/Code
371 - 9