# alexlondon07/multicloud-in-git-together-lab architecture

> Architecture diagram of the GitHub repository alexlondon07/multicloud-in-git-together-lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alexlondon07/multicloud-in-git-together-lab
- Repository: https://github.com/alexlondon07/multicloud-in-git-together-lab

## Overview

##### Main System Components
- GitHub Repository: Represent the repository as the central source, containing the codebase, configuration files, and GitHub Actions workflows.
- GitHub Actions Workflows: Highlight the workflows in the .github/workflows directory. There are several YAML files—each targeting CI/CD steps for Azure and AWS deployments.
- Azure Component:
– Azure Function App: Include both deployed functions (“helloGitTogether” and “byeGitTogether”) along with their configuration files (like host.json, functions.json, function.json, index.js). Also note that Node.js is being used.
- AWS Component:
– AWS Lambda: Include the Lambda function (HelloGitTogetherLambda) along with its Node.js based code and package.json.
- External Cloud Platforms: Represent Azure and AWS as external systems that receive the deployments.

##### Relationships and Interactions
- A directional flow from the GitHub Repository to the GitHub Actions Workflows. Indicate that, when code is pushed or PRs are created, the workflows trigger CI/CD pipelines.
- For the AWS part, indicate that another workflow deploys code present in the Lambda directory to AWS Lambda.
- Labels for “Deployment” or “CI/CD” flow, emphasizing that the same repository orchestrates deployments to different cloud environments using GitHub Actions.

##### Architectural Patterns and Design Principles
- GitOps/CI-CD: The system relies on Git as the source of truth with automated deployment pipelines.
- Separation of Cloud-Specific Code: The file structure keeps Azure Functions and AWS Lambda code in separate directories, which suggests a modular, organized approach to handling multi-cloud deployments.
- Use of Serverless Paradigm: The services (functions) are stateless and event-driven, a key cloud-native pattern.

##### Relevant Technologies, Frameworks, and Libraries
- Node.js is the runtime for both Azure Functions and AWS Lambda code.
- GitHub Actions is the orchestrator for CI/CD pipelines.
- Azure Functions configuration files (host.json, functions.json) and AWS Lambda deployment files.

## Diagram (Mermaid)

```mermaid
graph TD
    Repo["GitHub Repository"]:::repo
    Workflows["GitHub Actions Workflows"]:::workflow

    Repo -->|"CI/CD-trigger"| Workflows

    subgraph "Azure Deployment"
        AzureFunc["Azure Function App"]:::azureFunc
        AzureFunc -->|"Deploys"| HelloAzure["helloGitTogether"]:::azureFuncDetail
        AzureFunc -->|"Deploys"| ByeAzure["byeGitTogether"]:::azureFuncDetail
        AzureFunc -->|"RunsOn"| AzureCloud["Azure Cloud"]:::azureCloud
    end

    subgraph "AWS Deployment"
        AWSLambda["AWS Lambda Function"]:::awsLambda
        AWSLambda -->|"RunsOn"| AWSCloud["AWS Cloud"]:::awsCloud
    end

    Workflows -->|"DeployToAzure"| AzureFunc
    Workflows -->|"DeployToAWS"| AWSLambda

    click Repo "https://github.com/alexlondon07/multicloud-in-git-together-lab/blob/main/README.md"
    click Workflows "https://github.com/alexlondon07/multicloud-in-git-together-lab/tree/main/.github/workflows/"
    click AzureFunc "https://github.com/alexlondon07/multicloud-in-git-together-lab/tree/main/AzureFunction/"
    click AWSLambda "https://github.com/alexlondon07/multicloud-in-git-together-lab/tree/main/Lambda/"

    classDef repo fill:#cfe2f3,stroke:#6fa8dc,stroke-width:2px;
    classDef workflow fill:#f9cb9c,stroke:#e69138,stroke-width:2px;
    classDef azureFunc fill:#d9ead3,stroke:#6aa84f,stroke-width:2px;
    classDef azureFuncDetail fill:#d9ead3,stroke:#6aa84f,stroke-width:2px;
    classDef azureCloud fill:#b4a7d6,stroke:#8e7cc3,stroke-width:2px;
    classDef awsLambda fill:#ffe599,stroke:#f1c232,stroke-width:2px;
    classDef awsCloud fill:#d0e0e3,stroke:#76a5af,stroke-width:2px;
```
