aws-samples / aws-security-reference-architecture-examples
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 90 files with 12,849 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (627 lines of code)
    • 26 medium size files (7,400 lines of codeclsfd_ftr_w_mp_ins)
    • 20 small files (2,716 lines of code)
    • 43 very small files (2,106 lines of code)
0% | 4% | 57% | 21% | 16%
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
py0% | 19% | 56% | 18% | 5%
yaml0% | 0% | 58% | 21% | 20%
toml0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
aws_sra_examples/solutions/securityhub0% | 54% | 34% | 9% | 1%
aws_sra_examples/solutions/common0% | 0% | 80% | 14% | 4%
aws_sra_examples/solutions/guardduty0% | 0% | 57% | 26% | 16%
aws_sra_examples/solutions/config0% | 0% | 47% | 19% | 33%
aws_sra_examples/solutions/macie0% | 0% | 51% | 38% | 10%
aws_sra_examples/solutions/s30% | 0% | 76% | 0% | 23%
aws_sra_examples/solutions/ec20% | 0% | 77% | 0% | 22%
aws_sra_examples/solutions/cloudtrail0% | 0% | 66% | 14% | 19%
aws_sra_examples/solutions/firewall_manager0% | 0% | 48% | 34% | 17%
aws_sra_examples/solutions/iam0% | 0% | 44% | 0% | 55%
aws_sra_examples/utils/aws_control_tower0% | 0% | 0% | 68% | 31%
aws_sra_examples/utils0% | 0% | 0% | 99% | <1%
ROOT0% | 0% | 0% | 100% | 0%
Longest Files (Top 50)
File# lines# units
app.py
in aws_sra_examples/solutions/securityhub/securityhub_enabler_acct/lambda/src
627 13
app.py
in aws_sra_examples/solutions/guardduty/guardduty_org/lambda/src
474 21
sra-securityhub-enabler-acct.yaml
in aws_sra_examples/solutions/securityhub/securityhub_enabler_acct/templates
389 -
app.py
in aws_sra_examples/solutions/macie/macie_org/lambda/src
383 22
sra-common-prerequisites-staging-s3-bucket.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
366 -
sra-cloudtrail-org.yaml
in aws_sra_examples/solutions/cloudtrail/cloudtrail_org/templates
360 -
sra-common-prerequisites-main-ssm.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
335 -
sra-s3-block-account-public-access.yaml
in aws_sra_examples/solutions/s3/s3_block_account_public_access/templates
323 -
sra-common-prerequisites-main.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
321 -
sra-guardduty-org-configuration.yaml
in aws_sra_examples/solutions/guardduty/guardduty_org/templates
311 -
sra-ec2-default-ebs-encryption.yaml
in aws_sra_examples/solutions/ec2/ec2_default_ebs_encryption/templates
306 -
sra-macie-org-configuration.yaml
in aws_sra_examples/solutions/macie/macie_org/templates
293 -
sra-common-prerequisites-management-account-parameters.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
272 -
sra-common-prerequisites-member-account-parameters.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
260 -
app.py
in aws_sra_examples/solutions/ec2/ec2_default_ebs_encryption/lambda/src
257 15
sra-config-management-account-update-aggregator.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
248 -
app.py
in aws_sra_examples/solutions/s3/s3_block_account_public_access/lambda/src
246 15
sra-config-management-account-main-ssm.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
245 -
sra-common-cfct-setup-management-account-ou.yaml
in aws_sra_examples/solutions/common/common_cfct_setup/templates
243 -
sra-firewall-manager-org-waf-policy.yaml
in aws_sra_examples/solutions/firewall_manager/firewall_manager_org/templates
240 -
app.py
in aws_sra_examples/solutions/common/common_prerequisites/lambda/src
239 16
sra-config-management-account-main.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
237 -
sra-common-cfct-setup-main-ssm.yaml
in aws_sra_examples/solutions/common/common_cfct_setup/templates
223 -
sra-common-cfct-setup-main.yaml
in aws_sra_examples/solutions/common/common_cfct_setup/templates
218 -
sra-iam-password-policy-acct.yaml
in aws_sra_examples/solutions/iam/iam_password_policy_acct/templates
206 -
sra-firewall-manager-org-delegate-admin.yaml
in aws_sra_examples/solutions/firewall_manager/firewall_manager_org/templates
204 -
app.py
in aws_sra_examples/solutions/cloudtrail/cloudtrail_org/lambda/src
201 8
sra-config-management-account.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
174 -
sra-common-register-delegated-administrator.yaml
in aws_sra_examples/solutions/common/common_register_delegated_administrator/templates
172 -
sra-firewall-manager-org-sg-policy.yaml
in aws_sra_examples/solutions/firewall_manager/firewall_manager_org/templates
171 -
sra-macie-org-s3-bucket.yaml
in aws_sra_examples/solutions/macie/macie_org/templates
161 -
list_config_recorder_status.py
in aws_sra_examples/utils/aws_control_tower/helper_scripts
159 7
prereq-ssm-account-params.yaml
in aws_sra_examples/utils/aws_control_tower/prerequisites
157 -
app.py
in aws_sra_examples/solutions/common/common_register_delegated_administrator/lambda/src
151 10
app.py
in aws_sra_examples/solutions/firewall_manager/firewall_manager_org/lambda/src
147 7
sra-guardduty-org-delivery-s3-bucket.yaml
in aws_sra_examples/solutions/guardduty/guardduty_org/templates
143 -
sra-cloudtrail-org-bucket.yaml
in aws_sra_examples/solutions/cloudtrail/cloudtrail_org/templates
125 -
lambda-s3-buckets.yaml
in aws_sra_examples/utils
123 -
sra-config-conformance-pack-org-delivery-bucket.yaml
in aws_sra_examples/solutions/config/config_conformance_pack_org/templates
122 -
app.py
in aws_sra_examples/solutions/common/common_cfct_setup/lambda/src
121 12
manifest-v2.yaml
in aws_sra_examples/solutions/macie/macie_org/customizations_for_aws_control_tower
121 -
manifest-v2.yaml
in aws_sra_examples/solutions/guardduty/guardduty_org/customizations_for_aws_control_tower
119 -
pyproject.toml
in root
118 -
sra-macie-org-kms-key.yaml
in aws_sra_examples/solutions/macie/macie_org/templates
114 -
sra-macie-org-configuration-role.yaml
in aws_sra_examples/solutions/macie/macie_org/templates
109 -
sra-securityhub-enabler-acct-role.yaml
in aws_sra_examples/solutions/securityhub/securityhub_enabler_acct/templates
108 -
sra-guardduty-org-delivery-kms-key.yaml
in aws_sra_examples/solutions/guardduty/guardduty_org/templates
101 -
prereq-lambda-s3-bucket.yaml
in aws_sra_examples/utils/aws_control_tower/prerequisites
100 -
sra-config-conformance-pack-templates-bucket.yaml
in aws_sra_examples/solutions/config/config_conformance_pack_org/templates
100 -
sra-s3-block-account-public-access-role.yaml
in aws_sra_examples/solutions/s3/s3_block_account_public_access/templates
98 -
Files With Most Units (Top 14)
File# lines# units
app.py
in aws_sra_examples/solutions/macie/macie_org/lambda/src
383 22
app.py
in aws_sra_examples/solutions/guardduty/guardduty_org/lambda/src
474 21
app.py
in aws_sra_examples/solutions/common/common_prerequisites/lambda/src
239 16
app.py
in aws_sra_examples/solutions/s3/s3_block_account_public_access/lambda/src
246 15
app.py
in aws_sra_examples/solutions/ec2/ec2_default_ebs_encryption/lambda/src
257 15
app.py
in aws_sra_examples/solutions/securityhub/securityhub_enabler_acct/lambda/src
627 13
app.py
in aws_sra_examples/solutions/common/common_cfct_setup/lambda/src
121 12
app.py
in aws_sra_examples/solutions/common/common_register_delegated_administrator/lambda/src
151 10
app.py
in aws_sra_examples/solutions/config/config_management_account/lambda/src
91 8
app.py
in aws_sra_examples/solutions/cloudtrail/cloudtrail_org/lambda/src
201 8
list_config_recorder_status.py
in aws_sra_examples/utils/aws_control_tower/helper_scripts
159 7
app.py
in aws_sra_examples/solutions/firewall_manager/firewall_manager_org/lambda/src
147 7
app.py
in aws_sra_examples/solutions/iam/iam_password_policy_acct/lambda/src
66 3
inline_lambda.py
in aws_sra_examples/solutions/common/common_prerequisites/lambda/src
21 2
Files With Long Lines (Top 20)

There are 44 files with lines longer than 120 characters. In total, there are 350 long lines.

File# lines# units# long lines
sra-config-management-account-main-ssm.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
245 - 23
sra-config-management-account-main.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
237 - 21
sra-common-prerequisites-main-ssm.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
335 - 21
sra-common-prerequisites-main.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
321 - 17
sra-common-cfct-setup-main-ssm.yaml
in aws_sra_examples/solutions/common/common_cfct_setup/templates
223 - 17
sra-common-cfct-setup-main.yaml
in aws_sra_examples/solutions/common/common_cfct_setup/templates
218 - 17
app.py
in aws_sra_examples/solutions/common/common_prerequisites/lambda/src
239 16 16
sra-common-cfct-setup-management-account-ou.yaml
in aws_sra_examples/solutions/common/common_cfct_setup/templates
243 - 14
sra-common-prerequisites-staging-s3-bucket.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
366 - 12
sra-macie-org-configuration.yaml
in aws_sra_examples/solutions/macie/macie_org/templates
293 - 12
sra-cloudtrail-org.yaml
in aws_sra_examples/solutions/cloudtrail/cloudtrail_org/templates
360 - 12
sra-s3-block-account-public-access.yaml
in aws_sra_examples/solutions/s3/s3_block_account_public_access/templates
323 - 11
sra-config-management-account-update-aggregator.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
248 - 11
sra-ec2-default-ebs-encryption.yaml
in aws_sra_examples/solutions/ec2/ec2_default_ebs_encryption/templates
306 - 11
sra-guardduty-org-configuration.yaml
in aws_sra_examples/solutions/guardduty/guardduty_org/templates
311 - 10
app.py
in aws_sra_examples/solutions/s3/s3_block_account_public_access/lambda/src
246 15 9
app.py
in aws_sra_examples/solutions/config/config_management_account/lambda/src
91 8 9
sra-common-prerequisites-management-account-parameters.yaml
in aws_sra_examples/solutions/common/common_prerequisites/templates
272 - 9
app.py
in aws_sra_examples/solutions/ec2/ec2_default_ebs_encryption/lambda/src
257 15 9
sra-config-management-account.yaml
in aws_sra_examples/solutions/config/config_management_account/templates
174 - 8