# btkrausen/hashicorp architecture

> Architecture diagram of the GitHub repository btkrausen/hashicorp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/btkrausen/hashicorp
- Repository: https://github.com/btkrausen/hashicorp

## Overview

##### Project Type and Purpose
This is an educational resource repository focused on HashiCorp products and cloud infrastructure technologies. The project serves as a supplementary resource for training courses and includes hands-on labs, configuration examples, and learning materials.

##### Main Components

a. Core HashiCorp Product Sections:
- Terraform (Infrastructure as Code)
- Vault (Secrets Management)
- Consul (Service Mesh)
- Nomad (Workload Orchestration)
- Packer (Image Building)

b. Educational Resources Layer:
- Training Materials
- Hands-on Labs
- Practice Exams
- Code Examples

**[Educational Platform Layer]**
- ↓
**[HashiCorp Products Layer]**
- ↓
**[Infrastructure Integration Layer]**

##### Component Relationships

- Rectangles (Blue): Core HashiCorp products
- Hexagons (Green): Cloud provider integrations
- Rounded Rectangles (Orange): Educational materials

##### Detailed Component Breakdown

a. Educational Platform Layer:
- Practice Exams
- Lab Prerequisites
- Documentation

b. HashiCorp Products Layer:
- Terraform Section:
- Core Workflow
- Modules
- State Management
- Cloud Integration

- Vault Section:
- Configuration
- Policies
- Scripts
- Integration

- Consul Section:
- Configuration
- ACL Policies
- Service Definitions

- Packer Section:
- Templates
- Build Configurations
- Multi-Cloud Support

c. Infrastructure Integration Layer:
- AWS Integration
- Azure Integration
- GCP Integration
- Kubernetes Integration

##### Important Elements

- Clear labeling of all components
- Version information where applicable
- Integration points between different HashiCorp products

##### The multi-cloud integration capabilities

Remember to maintain a balance between detail and clarity, focusing on the educational workflow while showing the technical infrastructure that supports it.

## Diagram (Mermaid)

```mermaid
graph TB
    classDef product fill:#3498db,stroke:#2980b9,color:white
    classDef educational fill:#e67e22,stroke:#d35400,color:white
    classDef cloud fill:#2ecc71,stroke:#27ae60,color:white
    classDef config fill:#9b59b6,stroke:#8e44ad,color:white
    classDef integration fill:#95a5a6,stroke:#7f8c8d,color:white

    subgraph Educational
        ED[Educational Platform]
        Labs[Hands-on Labs]
        Prerequisites[Lab Prerequisites]
        PackerLabs[Packer Labs]
    end

    subgraph HashiCorePlatform
        Terraform[Terraform]
        Vault[Vault]
        Consul[Consul]
        Nomad[Nomad]
        Packer[Packer]
    end

    subgraph CloudIntegration
        AWS[AWS Integration]
        Azure[Azure Integration]
        GCP[GCP Integration]
        VMware[VMware Integration]
    end

    subgraph Configuration
        ConsulConfig[Consul Config]
        VaultConfig[Vault Config]
        NomadConfig[Nomad Config]
        ServiceDef[Service Definitions]
        ACLPolicies[ACL Policies]
    end

    subgraph SecurityPolicies
        VaultPolicies[Vault Policies]
        SentinelPolicies[Sentinel Policies]
        TFCloudPolicies[Terraform Cloud Policies]
    end

    ED --> Labs
    ED --> Prerequisites
    ED --> PackerLabs

    Labs --> Terraform
    Prerequisites --> Terraform
    PackerLabs --> Packer

    Terraform --> AWS
    Terraform --> Azure
    Terraform --> GCP
    
    Vault --> VaultConfig
    Vault --> VaultPolicies
    Vault --> SentinelPolicies
    
    Consul --> ConsulConfig
    Consul --> ServiceDef
    Consul --> ACLPolicies
    
    Nomad --> NomadConfig
    
    Packer --> AWS
    Packer --> Azure
    Packer --> GCP
    Packer --> VMware

    %% Click events for component mapping
    click Terraform "https://github.com/btkrausen/hashicorp/tree/master//terraform/"
    click Vault "https://github.com/btkrausen/hashicorp/tree/master//vault/"
    click Consul "https://github.com/btkrausen/hashicorp/tree/master//consul/"
    click Nomad "https://github.com/btkrausen/hashicorp/tree/master//nomad/"
    click Packer "https://github.com/btkrausen/hashicorp/tree/master//packer/"
    click Labs "https://github.com/btkrausen/hashicorp/tree/master//terraform/Hands-On Labs/"
    click Prerequisites "https://github.com/btkrausen/hashicorp/tree/master//terraform/Lab Prerequisites/"
    click PackerLabs "https://github.com/btkrausen/hashicorp/tree/master//packer/Lab 0"
    click AWS "https://github.com/btkrausen/hashicorp/blob/master//packer/demo/vault/vault_aws_engine.pkr.hcl"
    click Azure "https://github.com/btkrausen/hashicorp/blob/master//packer/demo/azure/azure-linux.pkr.hcl"
    click GCP "https://github.com/btkrausen/hashicorp/tree/master//packer/demo/gcp/"
    click VMware "https://github.com/btkrausen/hashicorp/tree/master//packer/demo/vmware/"
    click ServiceDef "https://github.com/btkrausen/hashicorp/blob/master//consul/service.hcl"
    click ACLPolicies "https://github.com/btkrausen/hashicorp/blob/master//consul/acl_policy.hcl"
    click VaultPolicies "https://github.com/btkrausen/hashicorp/tree/master//vault/policies/"
    click SentinelPolicies "https://github.com/btkrausen/hashicorp/tree/master//vault/sentinel/"
    click TFCloudPolicies "https://github.com/btkrausen/hashicorp/tree/master//terraform-cloud/policy-as-code/"
    click ConsulConfig "https://github.com/btkrausen/hashicorp/blob/master//consul/config.hcl"
    click VaultConfig "https://github.com/btkrausen/hashicorp/blob/master//vault/config_files/vault.hcl"
    click NomadConfig "https://github.com/btkrausen/hashicorp/blob/master//nomad/server_config.hcl"

    %% Styling
    class Terraform,Vault,Consul,Nomad,Packer product
    class ED,Labs,Prerequisites,PackerLabs educational
    class AWS,Azure,GCP,VMware cloud
    class ConsulConfig,VaultConfig,NomadConfig,ServiceDef,ACLPolicies config
    class VaultPolicies,SentinelPolicies,TFCloudPolicies config
```
