awslabs / aws-cloudformation-templates
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 140 files with 22,735 lines of code.
    • 0 very long files (0 lines of code)
    • 8 long files (4,891 lines of code)
    • 29 medium size files (9,556 lines of codeclsfd_ftr_w_mp_ins)
    • 30 small files (4,475 lines of code)
    • 73 very small files (3,813 lines of code)
0% | 21% | 42% | 19% | 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
yaml0% | 19% | 49% | 16% | 15%
yml0% | 30% | 36% | 26% | 5%
py0% | 20% | 16% | 22% | 39%
js0% | 0% | 0% | 56% | 43%
MD0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
community/codestar/python-webservice-lambda0% | 100% | 0% | 0% | 0%
aws/solutions/CloudFrontCustomOriginLambda@Edge0% | 100% | 0% | 0% | 0%
aws/services/IoT0% | 77% | 0% | 14% | 8%
aws/solutions/ADConnector0% | 91% | 0% | 0% | 8%
aws/solutions/StackSetsResource0% | 71% | 0% | 0% | 28%
aws/services/NeptuneDB0% | 100% | 0% | 0% | 0%
aws/services/ElasticLoadBalancing0% | 27% | 72% | 0% | 0%
aws/services/AutoScaling0% | 35% | 64% | 0% | 0%
aws/services/ECS0% | 0% | 67% | 32% | 0%
aws/solutions/OperatingSystems0% | 0% | 100% | 0% | 0%
aws/services/VPC0% | 0% | 100% | 0% | 0%
aws/solutions/CloudFormationEndpointSignals0% | 0% | 64% | 35% | 0%
aws/solutions/lambda-backed-cloudformation-custom-resources0% | 0% | 42% | 18% | 38%
aws/solutions/AutomateCreatingHanaBackupBucket0% | 0% | 100% | 0% | 0%
aws/solutions/DirectoryADClients0% | 0% | 100% | 0% | 0%
aws/solutions0% | 0% | 100% | 0% | 0%
aws/solutions/PrefixListResource0% | 0% | 59% | 0% | 40%
aws/solutions/DirectoryServiceSettings0% | 0% | 75% | 24% | 0%
community/codestar/custom-ci-cd-pipeline0% | 0% | 100% | 0% | 0%
aws/solutions/ManagedAD0% | 0% | 100% | 0% | 0%
aws/solutions/LambaStaticIP0% | 0% | 100% | 0% | 0%
aws/solutions/VPCPeering0% | 0% | 26% | 59% | 14%
aws/solutions/VPCFlowLogs0% | 0% | 0% | 100% | 0%
aws/services/CloudFormation0% | 0% | 0% | 30% | 69%
aws/services/ServiceCatalog0% | 0% | 0% | 100% | 0%
community/solutions/StaticWebSiteWithPipeline0% | 0% | 0% | 58% | 41%
aws/services/Config0% | 0% | 0% | 100% | 0%
aws/solutions/PersistAZMapping0% | 0% | 0% | 100% | 0%
community/solutions0% | 0% | 0% | 100% | 0%
aws/services/DirectoryService0% | 0% | 0% | 100% | 0%
aws/services/RDS0% | 0% | 0% | 51% | 48%
aws/solutions/S3CrossAccountReplicationWithKMS0% | 0% | 0% | 59% | 40%
aws/solutions/TaggingRootVolumesInEC20% | 0% | 0% | 100% | 0%
aws/services/S30% | 0% | 0% | 0% | 100%
aws/services/EC20% | 0% | 0% | 0% | 100%
aws/services/DynamoDB0% | 0% | 0% | 0% | 100%
community/services/Lambda0% | 0% | 0% | 0% | 100%
community/services/RDS0% | 0% | 0% | 0% | 100%
aws/services/Cloud90% | 0% | 0% | 0% | 100%
community/custom_resources/python_custom_resource_helper0% | 0% | 0% | 0% | 100%
aws/services/IAM0% | 0% | 0% | 0% | 100%
aws/solutions/S3AccessLogs0% | 0% | 0% | 0% | 100%
aws/solutions/Fetch-AMI-From-Parameter-Store0% | 0% | 0% | 0% | 100%
aws/solutions/EC2DomainJoin0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
template.yml
in community/codestar/python-webservice-lambda
764 -
CloudFront.yaml
in aws/solutions/CloudFrontCustomOriginLambda@Edge
733 -
amzn2-greengrass-cfn.yml
in aws/services/IoT
635 -
ADCONNECTOR.cfn.yaml
in aws/solutions/ADConnector/templates
626 -
lambda_function.py
in aws/solutions/StackSetsResource/FunctionCode
558 16
Neptune.yaml
in aws/services/NeptuneDB
543 -
ELB_Access_Logs_And_Connection_Draining.yaml
in aws/services/ElasticLoadBalancing
526 -
AutoScalingMultiAZWithNotifications.yaml
in aws/services/AutoScaling
506 -
ELBGuidedAutoScalingRollingUpgrade.yaml
in aws/services/ElasticLoadBalancing
483 -
private-vpc.yml
in aws/services/ECS/EC2LaunchType/clusters
473 -
ELBStickinessSample.yaml
in aws/services/ElasticLoadBalancing
460 -
AutoScalingScheduledAction.yaml
in aws/services/AutoScaling
457 -
AutoScalingRollingUpdates.yaml
in aws/services/AutoScaling
453 -
ELBWithLockedDownAutoScaledInstances.yaml
in aws/services/ElasticLoadBalancing
446 -
CreateHanaBackupSecureBackut.yaml
in aws/solutions/AutomateCreatingHanaBackupBucket/CFT
435 -
VPC_With_Managed_NAT_And_Private_Subnet.yaml
in aws/services/VPC
430 -
DIRECTORY-AD-CLIENTS.yaml
in aws/solutions/DirectoryADClients/templates
418 -
private-vpc.yml
in aws/services/ECS/FargateLaunchType/clusters
395 -
VPC_EC2_Instance_With_Multiple_Static_IPAddresses.yaml
in aws/services/VPC
395 -
WordPress_Single_Instance.yaml
in aws/solutions
378 -
cfn-endpoint-waitcondition.yaml
in aws/solutions/PrefixListResource/Templates
342 -
cfn-endpoint-waitcondition.yaml
in aws/solutions/CloudFormationEndpointSignals
325 -
DIRECTORY_SETTINGS.cfn.yaml
in aws/solutions/DirectoryServiceSettings/templates
310 -
public-vpc.yml
in aws/services/ECS/EC2LaunchType/clusters
309 -
cfn-endpoint-creationpolicy.yaml
in aws/solutions/CloudFormationEndpointSignals
299 -
template.yml
in community/codestar/custom-ci-cd-pipeline
275 -
MANAGEDAD.cfn.yaml
in aws/solutions/ManagedAD/templates
272 -
lambda-static.cfn.yaml
in aws/solutions/LambaStaticIP
237 -
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/update_endpoint_policy
232 12
public-vpc.yml
in aws/services/ECS/FargateLaunchType/clusters
229 -
VPCPeering-Updates.cfn.yaml
in aws/solutions/VPCPeering/templates
227 -
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/update_kms_policy
218 11
RHEL8_cfn-hup.cfn.yaml
in aws/solutions/OperatingSystems
214 -
RHEL7_cfn-hup.cfn.yaml
in aws/solutions/OperatingSystems
212 -
ubuntu18.04LTS_cfn-hup.cfn.yaml
in aws/solutions/OperatingSystems
212 -
ubuntu16.04LTS_cfn-hup.cfn.yaml
in aws/solutions/OperatingSystems
210 -
ubuntu20.04LTS_cfn-hup.cfn.yaml
in aws/solutions/OperatingSystems
210 -
VPCFlowLogs-main.cfn.yaml
in aws/solutions/VPCFlowLogs/templates
193 -
policytemplates.py
in aws/services/CloudFormation/MacrosExamples/ExecutionRoleBuilder/lambda
191 -
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/get_latest_ami_id
191 10
Config.yaml
in aws/services/Config
189 -
cfn-endpoint-waitcondition-no-igw.yaml
in aws/solutions/CloudFormationEndpointSignals
186 -
VPCFlowLogsS3.cfn.yaml
in aws/solutions/VPCFlowLogs/templates
183 -
VPCPeering-Accepter-Tag.cfn.yaml
in aws/solutions/VPCPeering/templates
183 -
VPCPeering-Accepter.main.cfn.yaml
in aws/solutions/VPCPeering/templates
176 -
Product.yaml
in aws/services/ServiceCatalog
174 -
Portfolio.yaml
in aws/services/ServiceCatalog
165 -
cfn-endpoint-creationpolicy-no-igw.yaml
in aws/solutions/CloudFormationEndpointSignals
160 -
VPCPeering-Requester.main.cfn.yaml
in aws/solutions/VPCPeering/templates
154 -
FindInMapAZs.yaml
in aws/solutions/PersistAZMapping
147 -
Files With Most Units (Top 20)
File# lines# units
lambda_function.py
in aws/solutions/StackSetsResource/FunctionCode
558 16
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/update_endpoint_policy
232 12
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/update_kms_policy
218 11
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/get_latest_ami_id
191 10
directory_settings_custom_resource.py
in aws/solutions/DirectoryServiceSettings/src
103 10
approveCertificate.js
in community/solutions/StaticWebSiteWithPipeline/lambdas
147 10
requestCertificate.js
in community/solutions/StaticWebSiteWithPipeline/lambdas
102 6
clearBuckets.js
in community/solutions/StaticWebSiteWithPipeline/lambdas
76 6
convert.py
in aws/services/CloudFormation/MacrosExamples/ShortHand/lambda
78 5
explode.py
in aws/services/CloudFormation/MacrosExamples/Explode/lambda
106 5
adconnector_custom_resource.py
in aws/solutions/ADConnector/src
55 5
lambda_function.py
in aws/solutions/PrefixListResource/FunctionCode
51 5
index.py
in aws/services/CloudFormation/MacrosExamples/ExecutionRoleBuilder/lambda
62 4
index.py
in aws/services/CloudFormation/MacrosExamples/Count/src
49 4
crhelper.py
in aws/solutions/StackSetsResource/FunctionCode
85 4
crhelper.py
in aws/solutions/PrefixListResource/FunctionCode
91 4
crhelper.py
in community/custom_resources/python_custom_resource_helper
87 4
resource.py
in aws/services/CloudFormation/MacrosExamples/Boto3/lambda
55 3
Routetable.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/get_vpc_main_route_table_id
74 3
resource.py
in aws/services/CloudFormation/MacrosExamples/S3Objects/lambda
73 2
Files With Long Lines (Top 20)

There are 49 files with lines longer than 120 characters. In total, there are 279 long lines.

File# lines# units# long lines
VPCFlowLogs-main.cfn.yaml
in aws/solutions/VPCFlowLogs/templates
193 - 24
ADCONNECTOR.cfn.yaml
in aws/solutions/ADConnector/templates
626 - 23
DIRECTORY-AD-CLIENTS.yaml
in aws/solutions/DirectoryADClients/templates
418 - 21
DIRECTORY_SETTINGS.cfn.yaml
in aws/solutions/DirectoryServiceSettings/templates
310 - 17
VPCFlowLogsS3.cfn.yaml
in aws/solutions/VPCFlowLogs/templates
183 - 16
VPCPeering-Accepter.main.cfn.yaml
in aws/solutions/VPCPeering/templates
176 - 16
MANAGEDAD.cfn.yaml
in aws/solutions/ManagedAD/templates
272 - 16
CloudFront.yaml
in aws/solutions/CloudFrontCustomOriginLambda@Edge
733 - 15
VPCPeering-Requester.main.cfn.yaml
in aws/solutions/VPCPeering/templates
154 - 14
Create-Macro.yaml
in aws/services/CloudFormation/MacrosExamples/Public-and-Private-Subnet-per-AZ
90 - 9
VPCPeering-Updates.cfn.yaml
in aws/solutions/VPCPeering/templates
227 - 7
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/update_endpoint_policy
232 12 7
approveCertificate.js
in community/solutions/StaticWebSiteWithPipeline/lambdas
147 10 7
VPCFlowLogsCloudWatch.cfn.yaml
in aws/solutions/VPCFlowLogs/templates
126 - 6
VPCPeering-Accepter-Tag.cfn.yaml
in aws/solutions/VPCPeering/templates
183 - 6
amzn2-greengrass-cfn.yml
in aws/services/IoT
635 - 5
lambda_function.py
in aws/solutions/lambda-backed-cloudformation-custom-resources/get_latest_ami_id
191 10 5
S3AccessLogs.cfn.yaml
in aws/solutions/S3AccessLogs/templates
74 - 5
Neptune.yaml
in aws/services/NeptuneDB
543 - 4
checkCertificateApproval.js
in community/solutions/StaticWebSiteWithPipeline/lambdas
48 1 4