How gustavoeso/projeto_cloud works
Main components
• CloudFormation Template – Represented by the projeto.yaml that orchestrates all AWS resources.
• Application Load Balancer (ALB) – The entry point for client requests.
• VPC and Subnets – The VPC (gustavoVPC) along with its two public subnets (PublicSubnet1 and PublicSubnet2).
• EC2 Instances in an Auto Scaling Group – Shown with a Launch Configuration (AppLaunchConfiguration) and an Auto Scaling Group (AppAutoScalingGroup) that supports scaling (from 1 to 5 instances) and utilizes an IAM Instance Profile.
• S3 Bucket – Used for storing the application code that is downloaded by instances during launch via user data.
• DynamoDB Table – The central database (“Users” table) along with the dedicated VPC Endpoint (DynamoDBVpcEndpoint) for secure, private connectivity.
• IAM Roles/Instance Profile – Represent the S3AccessRole and its attachment via the EC2InstanceProfile.
• Security Groups – For both the EC2 instances and the ALB that regulate incoming and outgoing traffic.
• Load Testing Component – Represent the Locust tool (locustfile.py) used to stress test the deployed environment.
Relationships and interactions
• From the EC2 instances, show two interactions:
• One with the S3 Bucket (for downloading and running the application code via user data).
• Another with the DynamoDB Table for data operations. Emphasize that these interactions occur over the VPC network, making use of the DynamoDB VPC Endpoint.
• Optionally, represent load testing (via Locust) as an external client that sends simulated requests to the ALB.
Architectural patterns and design principles
• Infrastructure as Code – The complete environment is managed via CloudFormation templates (projeto.yaml).
• Auto Scaling – Indicate the scaling policies (ScaleOutPolicy, ScaleInPolicy) that adjust instance counts based on CPU utilization.
• Security and Permissions – Clearly denote the IAM roles, security groups, and policies that give the necessary permissions to access AWS resources.
• Modular Components – Separate components (ALB, VPC, Auto Scaling Group, DynamoDB, S3, etc.) make the architecture easier to manage and scale.
Relevant technologies and frameworks
• AWS Services: EC2, ALB, VPC, DynamoDB, S3, CloudFormation, CloudWatch, IAM.
• Scripts and Automation: The provided bash and PowerShell scripts automate stack creation and deletion.
• Locust for Load Testing: Illustrate that load testing is performed by running locustfile.py to simulate traffic.
• Python Application: The application logic is contained in aplicacao.py, running on EC2 instances.
Clarity and detail
• That every major component (including load testing infrastructure and IAM roles) is represented.