# acloudguru-resources/course-certified-solutions-architect-associate architecture

> Architecture diagram of the GitHub repository acloudguru-resources/course-certified-solutions-architect-associate, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/acloudguru-resources/course-certified-solutions-architect-associate
- Repository: https://github.com/acloudguru-resources/course-certified-solutions-architect-associate

## Overview

##### Main Components
- Labs/Demos: Represent each lab (e.g., “creating-a-static-website-using-amazon-s3”, “creating-an-auto-scaling-group-and-app-load-balancer-aws”, “scaling-ec2-using-sqs”, etc.) as separate modules.
- AWS Services: For each lab, extract the AWS services being demonstrated:
- Static Website Lab: Amazon S3 for hosting static assets.
- Auto Scaling & Load Balancing Lab: EC2 (compute), Auto Scaling Groups, and Elastic Load Balancing.
- EC2 Instance Lab: EC2 and possibly related network components.
- CloudFormation Lab: CloudFormation stacks represented by template files (JSON, YAML) that define infrastructure.
- SQS Lab: Simple Queue Service (SQS) along with sample Python scripts for sending/receiving messages.
- Common Architectural Patterns: Note that many labs showcase fundamental AWS architectural patterns such as stateless vs. stateful design (e.g., using S3 for static hosting) and infrastructure as code (using CloudFormation).

##### Relationships and Interactions
- How CloudFormation templates are used to provision these resources.
- In the SQS lab, highlight the flow between the EC2 instances (or other compute nodes) and SQS for message-based scaling.
- Dependency and Control Flow: Clearly mark dependencies such as CloudFormation templates triggering configuration or setup of EC2 resources, and how the demos rely on these setups.

##### Architectural Patterns & Design Principles
- Infrastructure as Code: Emphasize the use of CloudFormation templates to standardize deployments (seen in labs/getting_started_with_cfn).
- Scalability & Resilience: Showcase auto scaling groups and load balancers that indicate principles for building resilient systems.
- Decoupling: With SQS in one lab, show how decoupling of system components is achieved for scalability and fault tolerance.

##### Incorporate Relevant Technologies
- AWS Components: S3, EC2, Auto Scaling, Elastic Load Balancing, CloudFormation, SQS.
- Programming/Scripting: Python scripts used for sending and receiving messages (as in labs/scaling-ec2-using-sqs) can be noted.
- Configuration Files: JSON and YAML files (from the CloudFormation lab) highlight infrastructure-as-code practices.

##### Suggested Elements
- Use clear, unambiguous labels for each component (e.g., “Amazon S3 (Static Website Hosting)”, “Auto Scaling Group”, “Elastic Load Balancer”, “EC2 Instances”, “CloudFormation Template”, “SQS Queue”).
- Data flow from the client to the ELB, then to EC2 instances.
- The setup flow from CloudFormation templates to AWS resource provisioning.
- Interaction between EC2 and SQS for scaling events.
- Rectangles for compute/service instances (EC2, S3, SQS).
- Annotations or legends to clarify which parts of the architecture are being demonstrated in each lab.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Client["Client"]

    %% Static Website Lab Subgraph
    subgraph "Static Website Lab"
        s3["Amazon S3 (Static Website Hosting)"]
    end

    %% Auto Scaling & Load Balancing Lab Subgraph
    subgraph "Auto Scaling & Load Balancing Lab"
        elb["Elastic Load Balancer"]
        asg["Auto Scaling Group"]
        ec2_asg["EC2 Instances"]
    end

    %% EC2 Instance Management Lab Subgraph
    subgraph "EC2 Instance Management Lab"
        ec2_mgmt["EC2 Instance"]
    end

    %% CloudFormation Lab Subgraph
    subgraph "CloudFormation Lab"
        cfn["CloudFormation Template"]
    end

    %% SQS Lab Subgraph
    subgraph "SQS Lab"
        sqs["SQS Queue"]
    end

    %% Elastic Beanstalk Demo Subgraph
    subgraph "Elastic Beanstalk Demo"
        eb["Elastic Beanstalk Demo"]
    end

    %% Connections
    Client -->|"HTTPRequest"| s3
    Client -->|"UserRequest"| elb
    elb -->|"distributes"| asg
    asg -->|"scales"| ec2_asg
    cfn -->|"provisions"| ec2_mgmt
    cfn -->|"configures"| asg
    ec2_asg -->|"sendsMessages"| sqs
    ec2_mgmt -->|"sendsMessages"| sqs

    %% Click Events
    click s3 "https://github.com/acloudguru-resources/course-certified-solutions-architect-associate/tree/master/labs/creating-a-static-website-using-amazon-s3"
    click elb "https://github.com/acloudguru-resources/course-certified-solutions-architect-associate/tree/master/labs/creating-an-auto-scaling-group-and-app-load-balancer-aws"
    click ec2_mgmt "https://github.com/acloudguru-resources/course-certified-solutions-architect-associate/tree/master/labs/creating-and-working-with-an-ec2-instance"
    click cfn "https://github.com/acloudguru-resources/course-certified-solutions-architect-associate/tree/master/labs/getting_started_with_cfn"
    click sqs "https://github.com/acloudguru-resources/course-certified-solutions-architect-associate/tree/master/labs/scaling-ec2-using-sqs"
    click eb "https://github.com/acloudguru-resources/course-certified-solutions-architect-associate/blob/master/demos/Elastic Beanstalk.txt"

    %% Styles
    classDef client fill:#FFEB3B,stroke:#000,stroke-width:2px;
    classDef infra fill:#BBDEFB,stroke:#0D47A1,stroke-width:2px;
    classDef lab fill:#C8E6C9,stroke:#2E7D32,stroke-width:2px;
    classDef demo fill:#FFF9C4,stroke:#F9A825,stroke-width:2px;
    
    class Client client;
    class s3,elb,asg,ec2_asg,ec2_mgmt,sqs infra;
    class cfn lab;
    class eb demo;
```
