These terraform files helps to create your own ec2 based ecs cluster. It is not for production enviroment but contains a lot of learning.
If you are unable to get any concept in these files feel free to read blog on medium for detail understanding. Medium link: https://rathiaman13.medium.com/creating-ec2-based-ecs-cluster-with-terraform-10b490f3e33c