How apgaua/terraform-modules works
Project type and purpose
• This is an Infrastructure-as-Code project written in Terraform, aimed at provisioning AWS resources in a modular way.
• Its purpose is to stand up a complete network (VPC, subnets, gateways), an ECS-based compute layer (EC2 cluster with Auto Scaling), and an ECS service module (task definitions, IAM roles, load balancer integration).
File structure
• Top-level directories:
• ecs-service-module – encapsulates IAM roles and variables for ECS services
• ecs_ec2 – defines the ECS EC2 cluster, launch templates, ASGs (on-demand & spot), load balancer, security groups
• networking-module – builds VPC, public/private/DB subnets, gateways, parameter store, outputs
• CI/CD integration via .github/workflows/documentation.yml
• Standard Terraform pattern: each module has its own variables.tf, outputs.tf, resources, and templates.
README
• Very brief (“Estrutura de módulos terraform”) – implies the focus is on how modules fit together.