# vivekbhat/serverless-repos architecture

> Architecture diagram of the GitHub repository vivekbhat/serverless-repos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vivekbhat/serverless-repos
- Repository: https://github.com/vivekbhat/serverless-repos

## Overview

##### Project type and purpose
- This repo (“Serverless-Repos”) is a collection of sample AWS serverless micro-projects. Each sub-project demonstrates a particular AWS serverless use case (thumbnail generation, RESTful CRUD API, EC2 automation).

##### File structure
- Top level:
- README.md – root manifest listing the examples
- There are no source code folders here; it’s purely documentation of architectures.
- Each example lives conceptually in its own AWS-centric, event-driven micro-service.

##### README for additional insights
- Each project description names its AWS services:
- S3 → thumbnails via Lambda
- API Gateway + Lambda + DynamoDB for REST
- CloudWatch (cron) → Lambda → EC2 start/stop
- No extra architectural notes beyond the embedded PNGs.

##### Detail orientation
- Configuration details if needed (e.g., memory size, runtime) as footnotes.
- For the REST API example, break out each HTTP method if there are multiple Lambdas.

## Diagram (Mermaid)

```mermaid
graph TD
    %% Project Manifest
    subgraph "Project Manifest / Overview"
        Manifest["Project Manifest / Overview"]:::docs
    end
    click Manifest "https://github.com/vivekbhat/serverless-repos/blob/master/README.md"

    %% Thumbnail Generation Example
    subgraph "Thumbnail Generation Example"
        S3In["S3 Bucket (Source)"]:::trigger
        ThumbLambda["ThumbnailGeneratorLambda"]:::compute
        S3Out["S3 Bucket (Destination)"]:::storage

        S3In -->|"ObjectCreated:Put"| ThumbLambda
        ThumbLambda -->|"PutObject"| S3Out
    end
    TGD["Architecture Diagram"]:::docs
    click TGD "https://github.com/vivekbhat/serverless-repos/blob/master/Resources/<thumbnail-generation-architecture>.png"

    %% RESTful CRUD API Example
    subgraph "RESTful CRUD API Example"
        APIG["API Gateway"]:::trigger
        CRUD1["CRUDHandlerLambda"]:::compute
        DDB["DynamoDB Table"]:::storage
        CRUD2["ResponseFormatterLambda"]:::compute

        APIG -->|"HTTP Invoke"| CRUD1
        CRUD1 -->|"Read/Write"| DDB
        DDB -->|"Stream/Event"| CRUD2
        CRUD2 -->|"HTTP Response"| APIG
    end
    RCD["Architecture Diagram"]:::docs
    click RCD "https://github.com/vivekbhat/serverless-repos/blob/master/Resources/<rest-api-crud-architecture>.png"

    %% EC2 Automation Example
    subgraph "EC2 Automation Example"
        CW["CloudWatch Events (Cron)"]:::trigger
        EC2Lam["EC2AutomationLambda"]:::compute
        EC2Inst["EC2 Instance"]:::service

        CW -->|"Scheduled Event"| EC2Lam
        EC2Lam -->|"Start/Stop API"| EC2Inst
    end
    EAD["Architecture Diagram"]:::docs
    click EAD "https://github.com/vivekbhat/serverless-repos/blob/master/Resources/<ec2-automation-architecture>.png"

    %% Styles
    classDef trigger fill:#9f6,stroke:#393,stroke-width:2px;
    classDef compute fill:#f96,stroke:#c63,stroke-width:2px;
    classDef storage fill:#6cf,stroke:#39c,stroke-width:2px;
    classDef service fill:#c9f,stroke:#63c,stroke-width:2px;
    classDef docs fill:#ddd,stroke:#999,stroke-width:1px,stroke-dasharray: 2 2;
```
