# e2esolutionarchitect/hashicorp-packer architecture

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

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

## Overview

This repository is a collection of Packer image templates and related infrastructure examples, rather than a single application. The documented workflow is to run Packer init, validate, and build commands from a directory containing Packer HCL files. The tree also shows provider-specific and multi-cloud templates, HCP Packer/Terraform examples, an Ansible variant, and an Azure pipeline. The root README documents the Packer workflow; relationships among the unsampled examples are not established here.

Main entry points: [`golden-images/aws`](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/aws) (AWS Templates), [`golden-images/azure`](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/azure) (Azure Templates), [`golden-images/gcp`](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/gcp) (GCP Templates), [`golden-images/multi-cloud/multicloud-pkr-v01`](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/multi-cloud/multicloud-pkr-v01) (Multi-cloud Template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_templates["Image Templates"]
  node_aws["AWS Templates"]
  node_azure["Azure Templates"]
  node_gcp["GCP Templates"]
  node_multicloud["Multi-cloud Template"]
  node_vsphere["vSphere Template"]
end

subgraph group_hcp["HCP Examples"]
  node_hcp_packer["HCP Azure Packer"]
  node_terraform["Terraform Azure"]
  node_ansible["Ansible Provisioning"]
  node_scripts["Provisioning Scripts"]
end

subgraph group_pipeline["Azure Pipeline"]
  node_ado["Azure DevOps Pipeline"]
end

subgraph group_outputs["Image Results"]
  node_cloud_images["Cloud Images"]
end

node_engineer(("Engineer"))
node_packer["Packer CLI"]

node_engineer -->|"runs commands"| node_packer
node_packer -->|"builds templates"| node_aws
node_packer -->|"builds templates"| node_azure
node_packer -->|"builds templates"| node_gcp
node_packer -->|"builds template"| node_multicloud
node_packer -->|"builds template"| node_vsphere
node_packer -->|"builds template"| node_hcp_packer
node_packer -.->|"produces images"| node_cloud_images

click node_aws "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/aws"
click node_azure "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/azure"
click node_gcp "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/gcp"
click node_multicloud "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/multi-cloud/multicloud-pkr-v01"
click node_vsphere "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/vsphere/vsphere-pkr-v01"
click node_hcp_packer "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure-ansible/packer"
click node_terraform "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure/terraform"
click node_ansible "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure-ansible/ansible"
click node_scripts "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure-ansible/scripts"
click node_ado "https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/pipeline/azure"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_aws,node_azure,node_gcp,node_multicloud,node_vsphere toneBlue
class node_hcp_packer,node_terraform,node_ansible,node_scripts toneAmber
class node_ado toneMint
class node_cloud_images toneRose
class node_engineer,node_packer toneIndigo
```

## Components

### Image Templates

- [AWS Templates](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/aws): `golden-images/aws`
- [Azure Templates](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/azure): `golden-images/azure`
- [GCP Templates](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/gcp): `golden-images/gcp`
- [Multi-cloud Template](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/multi-cloud/multicloud-pkr-v01): `golden-images/multi-cloud/multicloud-pkr-v01`
- [vSphere Template](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/golden-images/vsphere/vsphere-pkr-v01): `golden-images/vsphere/vsphere-pkr-v01`

### HCP Examples

- [HCP Azure Packer](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure-ansible/packer): `hcp-packer-terraform-azure-ansible/packer`
- [Terraform Azure](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure/terraform): `hcp-packer-terraform-azure/terraform`
- [Ansible Provisioning](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure-ansible/ansible): `hcp-packer-terraform-azure-ansible/ansible`
- [Provisioning Scripts](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/hcp-packer-terraform-azure-ansible/scripts): `hcp-packer-terraform-azure-ansible/scripts`

### Azure Pipeline

- [Azure DevOps Pipeline](https://github.com/e2esolutionarchitect/hashicorp-packer/tree/main/pipeline/azure): `pipeline/azure`

### Image Results

- **Cloud Images**

### Other components

- **Engineer**
- **Packer CLI**

## Connections

- Engineer → Packer CLI: runs commands (evidence: `README.md`)
- Packer CLI → AWS Templates: builds templates (evidence: `README.md`)
- Packer CLI → Azure Templates: builds templates (evidence: `README.md`)
- Packer CLI → GCP Templates: builds templates (evidence: `README.md`)
- Packer CLI → Multi-cloud Template: builds template (evidence: `README.md`)
- Packer CLI → vSphere Template: builds template (evidence: `README.md`)
- Packer CLI → HCP Azure Packer: builds template (evidence: `README.md`)
- Packer CLI → Cloud Images: produces images
