# aws-ia/terraform-aws-eks-blueprints architecture

> Architecture diagram of the GitHub repository aws-ia/terraform-aws-eks-blueprints, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aws-ia/terraform-aws-eks-blueprints
- Repository: https://github.com/aws-ia/terraform-aws-eks-blueprints

## Overview

##### Main Components

a) Core Infrastructure Layer:
- AWS VPC and networking components
- EKS Control Plane
- Node Groups/Managed Node Groups
- IAM roles and policies

b) Blueprint Pattern Categories:
- Infrastructure Patterns (private clusters, IPv6)
- Security Patterns (SSO, TLS)
- Operational Patterns (GitOps, monitoring)
- Workload Patterns (ML, gaming, stateful)
- Networking Patterns (VPC Lattice, cross-cluster communication)

c) Supporting Components:
- Terraform Modules
- -ons Management
- Team Access Management
- External Integrations

##### Relationship Flows

- Infrastructure provisioning flow from Terraform to AWS resources
- -on deployment process
- Authentication and authorization flows
- Cross-component communication paths

##### Specific Design Elements

Use the following visual elements:
- Blue: AWS services
- Green: Terraform components
- Orange: Kubernetes resources
- Purple: External integrations
- Gray: Supporting infrastructure

- Rectangles: Core services
- Hexagons: Pattern categories

**┌─ Terraform Layer ─────────────────────┐**
- (Configuration, State, Providers)      │
- AWS Infrastructure Layer ────────────┤
- (VPC, IAM, EKS Control Plane)         │
- Kubernetes Layer ───────────────────┤
- (Node Groups, Add-ons, Workloads)     │
- Pattern Implementation Layer ───────┤
- (Blueprint Patterns by Category)       │
- ┘

##### Key Integration Points

Highlight:
- Terraform provider interactions
- AWS service connections
- Kubernetes resource management
- -on deployment flows
- Team access controls

##### Pattern Relationships

How patterns:
- Share common infrastructure
- Interact with core components
- Leverage shared services
- With external systems

##### Implementation Notes

Annotations for:
- Required provider configurations
- State management considerations
- Security implementations
- Scaling aspects

- Modularity of the blueprint patterns
- Flexibility in implementation
- Security boundaries
- Operational workflows

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph TerraformLayer
        TF[Terraform Configuration]:::terraform
        TS[(Terraform State)]:::terraform
        TP[AWS Provider]:::terraform
    end

    subgraph AWSLayer
        VPC[VPC & Networking]:::aws
        IAM[IAM Roles & Policies]:::aws
        EKS[EKS Control Plane]:::aws
    end

    subgraph KubernetesLayer
        NG[Node Groups]:::k8s
        AD[Add-ons]:::k8s
        WL[Workloads]:::k8s
    end

    subgraph PatternLayer
        subgraph InfraPatterns
            IP1[Fully Private Cluster]:::pattern
            IP2[IPv6 Cluster]:::pattern
            IP3[Bottlerocket]:::pattern
        end

        subgraph SecurityPatterns
            SP1[SSO IAM Identity]:::pattern
            SP2[SSO Okta]:::pattern
            SP3[TLS with PCA]:::pattern
            SP4[External Secrets]:::pattern
        end

        subgraph OperationalPatterns
            OP1[GitOps]:::pattern
            OP2[Kubecost]:::pattern
            OP3[Karpenter]:::pattern
            OP4[Blue-Green Upgrade]:::pattern
        end

        subgraph WorkloadPatterns
            WP1[Machine Learning]:::pattern
            WP2[Agones Gaming]:::pattern
            WP3[Stateful Apps]:::pattern
            WP4[Fargate Serverless]:::pattern
        end

        subgraph NetworkingPatterns
            NP1[VPC Lattice]:::pattern
            NP2[Private-Public Ingress]:::pattern
            NP3[VPC CNI Network Policy]:::pattern
            NP4[PrivateLink Access]:::pattern
        end
    end

    TF --> TP
    TP --> VPC
    TP --> IAM
    TP --> EKS
    EKS --> NG
    NG --> AD
    AD --> WL

    classDef aws fill:#2196F3,stroke:#fff,stroke-width:2px,color:#fff
    classDef terraform fill:#4CAF50,stroke:#fff,stroke-width:2px,color:#fff
    classDef k8s fill:#FF9800,stroke:#fff,stroke-width:2px,color:#fff
    classDef pattern fill:#9C27B0,stroke:#fff,stroke-width:2px,color:#fff

    click IP1 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/fully-private-cluster"
    click IP2 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/ipv6-eks-cluster"
    click IP3 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/bottlerocket"
    click SP1 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/sso-iam-identity-center"
    click SP2 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/sso-okta"
    click SP3 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/tls-with-aws-pca-issuer"
    click SP4 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/external-secrets"
    click OP1 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/gitops"
    click OP2 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/kubecost"
    click OP3 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/karpenter"
    click OP4 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/blue-green-upgrade"
    click WP1 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/machine-learning"
    click WP2 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/agones-game-controller"
    click WP3 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/stateful"
    click WP4 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/fargate-serverless"
    click NP1 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/vpc-lattice"
    click NP2 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/private-public-ingress"
    click NP3 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/aws-vpc-cni-network-policy"
    click NP4 "https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/privatelink-access"
```
