# anagonbu/proyecto-final-aws-restart architecture

> Architecture diagram of the GitHub repository anagonbu/proyecto-final-aws-restart, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anagonbu/proyecto-final-aws-restart
- Repository: https://github.com/anagonbu/proyecto-final-aws-restart

## Overview

##### Project Type and Purpose
- This project is focused on deploying a static web page on AWS with an emphasis on high availability and scalability.
- The README indicates the use of AWS services such as Auto Scaling, Elastic Load Balancer (ELB), security groups, and proposed improvements (CloudFront, S3, RDS, etc.).

##### Analyzing the File Structure
- Top-level files like index.html confirm that the web component is static.
- The presence of a README with detailed steps (development, setup of Auto Scaling, ELB configuration, etc.) tells you the project’s backbone lies in the AWS cloud setup rather than local code logic.

a. Main Components to include:
- Static Web Content: Represent the index.html that will be served to users.
- Auto Scaling Group: Component to show how EC2 instances are scaled up/down according to demand.
- (Optional/Proposed for Improvement) Amazon CloudFront: Show as a CDN in front of ELB for faster content delivery.
- (Optional/Proposed) Amazon S3: Can be depicted if storing static content or backups.

b. Relationships and Interactions:
- If including Route 53, position it at the domain name/DNS level feeding into CloudFront or ELB.
- Feedback loop if Auto Scaling dynamically adjusts capacity based on traffic load.

##### Architectural Patterns and Principles
- High availability: Illustrate multiple Availability Zones symbolically (e.g., drawing EC2 instances in two or more AZs).
- Scalability: Mark the Auto Scaling Group and possibly include a note on how scaling policies work.
- Security measures: Indicate that security groups and AWS WAF (if implemented) encapsulate the system from potential breaches.

##### Additional Advice
- Although the file tree is sparse, do not overcomplicate the core AWS architecture outlined in the README. Instead, focus on capturing every step mentioned in the README: from static page hosting, load balancing, scaling, to the optional improvements.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% User Access Layer
    subgraph "User Access Layer"
        U("End User"):::user
        DNS("Route 53 (DNS)"):::dns
        CDN("Amazon CloudFront (CDN)"):::cdn
    end

    U -->|"resolves"| DNS
    DNS -->|"routes"| CDN

    %% AWS Infrastructure Layer
    subgraph "AWS Infrastructure"
        ELB("Elastic Load Balancer (ELB)"):::loadbalancer
        SG("Security Groups"):::security
        ASG("Auto Scaling Group"):::autoscaling
        EC2("EC2 Instances"):::compute
    end

    CDN -->|"forwards"| ELB
    ELB -->|"filters"| SG
    SG -->|"manages"| ASG
    ASG -->|"hosts"| EC2

    %% Application Layer: Static Content served by EC2 Instances
    subgraph "Application Layer"
        Web("Static Web Content"):::content
    end

    EC2 -->|"serves"| Web

    %% Project Artifacts Layer
    subgraph "Project Artifacts"
        DOC("Project Documentation"):::docs
        TEAM("Team Assets"):::assets
    end

    %% Click Events for Component Mapping
    click Web "https://github.com/anagonbu/proyecto-final-aws-restart/blob/main/index.html"
    click DOC "https://github.com/anagonbu/proyecto-final-aws-restart/blob/main/README.md"
    click TEAM "https://github.com/anagonbu/proyecto-final-aws-restart/tree/main/IntegrantesProyecto"

    %% Styles
    classDef user fill:#FFC0CB,stroke:#800000,stroke-width:2px;
    classDef dns fill:#ADD8E6,stroke:#000080,stroke-width:2px;
    classDef cdn fill:#87CEFA,stroke:#1E90FF,stroke-width:2px;
    classDef loadbalancer fill:#FFFACD,stroke:#B8860B,stroke-width:2px;
    classDef security fill:#E6E6FA,stroke:#483D8B,stroke-width:2px;
    classDef autoscaling fill:#98FB98,stroke:#2E8B57,stroke-width:2px;
    classDef compute fill:#F0E68C,stroke:#BDB76B,stroke-width:2px;
    classDef content fill:#90EE90,stroke:#006400,stroke-width:2px;
    classDef docs fill:#FFDEAD,stroke:#CD853F,stroke-width:2px;
    classDef assets fill:#D3D3D3,stroke:#696969,stroke-width:2px;
```
