aws-samples / aws-shield-advanced-rapid-deployment
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 45 files with 5,168 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 7 medium size files (2,328 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,459 lines of code)
    • 28 very small files (1,381 lines of code)
0% | 0% | 45% | 28% | 26%
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
yaml0% | 0% | 54% | 28% | 17%
py0% | 0% | 27% | 28% | 43%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
route530% | 0% | 75% | 0% | 24%
utility0% | 0% | 67% | 26% | 6%
athena0% | 0% | 100% | 0% | 0%
fms0% | 0% | 0% | 49% | 50%
shield0% | 0% | 0% | 92% | 7%
sns0% | 0% | 0% | 100% | 0%
kinesis0% | 0% | 0% | 58% | 41%
s30% | 0% | 0% | 0% | 100%
iam0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 45)
File# lines# units
generate_waf_logs.py
in code/utility
500 13
athena-workgroup-views.yaml
in code/athena/cfn
487 -
alb-health-check.yaml
in code/route53/healthChecks
296 -
cloudfront-config-proactive-engagement.yaml
in code/route53/cloudfront-config-proactive-engagement/cfn
291 -
cf-health-check.yaml
in code/route53/healthChecks
268 -
nlb-health-check.yaml
in code/route53/healthChecks
266 -
eip-health-check.yaml
in code/route53/healthChecks
220 -
get_fms_waf_policy.py
in code/utility
195 8
org-accessable-sns-topic.yaml
in code/sns/cfn
186 -
index.py
in code/shield/enableConfigure/lambda
163 1
shield-enable-configure.yaml
in code/shield/enableConfigure/cfn
157 -
fms-waf-security-policy-regional.yaml
in code/fms/fms-policy-waf-regional/cfn
154 -
index.py
in code/fms/fms-policy-waf-generator/lambda
146 1
kinesis-firehose-delivery-stream.yaml
in code/kinesis/cfn
136 -
fms-shield-security-policy-cloudfront.yaml
in code/fms/fms-policy-shield-protect-cloudfront/cfn
117 -
auto-protect-r53-hosted-zones.yaml
in code/fms/fms-mimic-shield-protect-route53-hosted-zones/cfn
103 -
auto-protect-global-accelerators.yaml
in code/fms/fms-mimic-shield-protect-global-accelerator/cfn
102 -
associate-fms-admin-configure.yaml
in code/fms/enableConfigure/cfn
100 -
fms-shield-security-policy-regional.yaml
in code/fms/fms-policy-shield-protect-regional/cfn
97 -
kinesis-firehose-iam-role.yaml
in code/kinesis/cfn
96 -
route53-associate-shield-protection-helper.yaml
in code/route53/route53-associate-shield-protection/cfn
90 -
index.py
in code/fms/fms-mimic-shield-protect-global-accelerator/lambda
88 1
index.py
in code/fms/fms-mimic-shield-protect-route53-hosted-zones/lambda
84 1
fms-policy-generator.yaml
in code/fms/fms-policy-waf-generator/cfn
83 -
index.py
in code/route53/route53-associate-shield-protection/lambda
78 1
cfn_stack_manage.py
in code/route53/cloudfront-config-proactive-engagement/lambda/remediate
69 1
s3-bucket-waf-logs.yaml
in code/s3/cfn
64 -
index.py
in code/route53/cloudfront-config-proactive-engagement/lambda/remediate
63 1
index.py
in code/route53/cloudfront-config-proactive-engagement/lambda/check-compliance
49 1
clone_fms_to_builder_fms.py
in code/utility
46 -
resource_details.py
in code/route53/cloudfront-config-proactive-engagement/lambda/remediate
43 1
service-linked-roles.yaml
in code/iam/cfn
32 -
cfnresponse.py
in code/fms/fms-policy-waf-generator/lambda
28 1
cfnresponse.py
in code/fms/fms-mimic-shield-protect-global-accelerator/lambda
28 1
cfnresponse.py
in code/fms/fms-mimic-shield-protect-route53-hosted-zones/lambda
28 1
cfnresponse.py
in code/route53/route53-associate-shield-protection/lambda
28 1
tag_check.py
in code/fms/fms-mimic-shield-protect-global-accelerator/lambda
26 1
tag_check.py
in code/fms/fms-mimic-shield-protect-route53-hosted-zones/lambda
26 1
cfnresponse.py
in code/fms/enableConfigure/lambda
26 1
cfnresponse.py
in code/shield/enableConfigure/lambda
26 1
tag_check.py
in code/route53/cloudfront-config-proactive-engagement/lambda/check-compliance
26 1
index.py
in code/fms/enableConfigure/lambda
25 2
AWS-SystemsManager-AutomationServiceRole.yaml
in code/config/serviceRoles/cfn
20 -
config-aggregator.yaml
in code/config/enableConfigure/cfn
11 -
load-baseline-traffic.py
in code/scripts
1 -
Files With Most Units (Top 20)
File# lines# units
generate_waf_logs.py
in code/utility
500 13
get_fms_waf_policy.py
in code/utility
195 8
index.py
in code/fms/enableConfigure/lambda
25 2
index.py
in code/fms/fms-policy-waf-generator/lambda
146 1
cfnresponse.py
in code/fms/fms-policy-waf-generator/lambda
28 1
index.py
in code/fms/fms-mimic-shield-protect-global-accelerator/lambda
88 1
tag_check.py
in code/fms/fms-mimic-shield-protect-global-accelerator/lambda
26 1
cfnresponse.py
in code/fms/fms-mimic-shield-protect-global-accelerator/lambda
28 1
index.py
in code/fms/fms-mimic-shield-protect-route53-hosted-zones/lambda
84 1
tag_check.py
in code/fms/fms-mimic-shield-protect-route53-hosted-zones/lambda
26 1
cfnresponse.py
in code/fms/fms-mimic-shield-protect-route53-hosted-zones/lambda
28 1
cfnresponse.py
in code/fms/enableConfigure/lambda
26 1
index.py
in code/shield/enableConfigure/lambda
163 1
cfnresponse.py
in code/shield/enableConfigure/lambda
26 1
index.py
in code/route53/route53-associate-shield-protection/lambda
78 1
cfnresponse.py
in code/route53/route53-associate-shield-protection/lambda
28 1
resource_details.py
in code/route53/cloudfront-config-proactive-engagement/lambda/remediate
43 1
index.py
in code/route53/cloudfront-config-proactive-engagement/lambda/remediate
63 1
cfn_stack_manage.py
in code/route53/cloudfront-config-proactive-engagement/lambda/remediate
69 1
index.py
in code/route53/cloudfront-config-proactive-engagement/lambda/check-compliance
49 1
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 50 long lines.

File# lines# units# long lines
generate_waf_logs.py
in code/utility
500 13 12
athena-workgroup-views.yaml
in code/athena/cfn
487 - 6
fms-waf-security-policy-regional.yaml
in code/fms/fms-policy-waf-regional/cfn
154 - 5
fms-shield-security-policy-cloudfront.yaml
in code/fms/fms-policy-shield-protect-cloudfront/cfn
117 - 3
index.py
in code/fms/fms-policy-waf-generator/lambda
146 1 2
associate-fms-admin-configure.yaml
in code/fms/enableConfigure/cfn
100 - 2
fms-shield-security-policy-regional.yaml
in code/fms/fms-policy-shield-protect-regional/cfn
97 - 2
kinesis-firehose-iam-role.yaml
in code/kinesis/cfn
96 - 2
kinesis-firehose-delivery-stream.yaml
in code/kinesis/cfn
136 - 2
get_fms_waf_policy.py
in code/utility
195 8 2
service-linked-roles.yaml
in code/iam/cfn
32 - 2
index.py
in code/route53/cloudfront-config-proactive-engagement/lambda/remediate
63 1 2
config-aggregator.yaml
in code/config/enableConfigure/cfn
11 - 1
index.py
in code/shield/enableConfigure/lambda
163 1 1
clone_fms_to_builder_fms.py
in code/utility
46 - 1
nlb-health-check.yaml
in code/route53/healthChecks
266 - 1
eip-health-check.yaml
in code/route53/healthChecks
220 - 1
cf-health-check.yaml
in code/route53/healthChecks
268 - 1
alb-health-check.yaml
in code/route53/healthChecks
296 - 1
cloudfront-config-proactive-engagement.yaml
in code/route53/cloudfront-config-proactive-engagement/cfn
291 - 1