Infrastructure Visualization
1. Directory Structure
graph TD
root[terragrunt-hybrid-cloud-platform] --> live[live/]
root --> modules[modules/]
root --> scripts[scripts/]
live --> aws[aws/]
live --> azure[azure/]
live --> gcp[gcp/]
aws --> env1[dev/]
env1 --> vpc_live[vpc/]
modules --> mod_aws[aws/]
modules --> mod_az[azure/]
mod_aws --> vpc_mod[vpc/]
style root fill:#f9f,stroke:#333,stroke-width:2px
style live fill:#ccf,stroke:#333
style modules fill:#ccf,stroke:#333
2. Terragrunt Resource Creation Workflow
sequenceDiagram
participant User
participant Terragrunt
participant Terraform
participant Registry as live/network_registry.hcl
participant Module as modules/
participant Cloud as AWS/Azure/GCP
User->>Terragrunt: terragrunt apply
Terragrunt->>Terragrunt: Load root.hcl (Base Config)
Terragrunt->>Registry: Read Network Registry
Registry-->>Terragrunt: Return CIDR Map
Terragrunt->>Terragrunt: Parse environment terragrunt.hcl
Terragrunt->>Module: Download/Reference Terraform Module
Terragrunt->>Terraform: Execute terraform apply
Terraform->>Cloud: Provision Resources
Cloud-->>Terraform: Resources Created
Terraform-->>Terragrunt: Success
Terragrunt-->>User: Done