Skip to content

Commit

Permalink
Merge pull request #2 from PashmakGuru/refactor/tfmermaid
Browse files Browse the repository at this point in the history
📊 Generate Terraform Diagrams
  • Loading branch information
AmirrezaNasiri authored Jan 5, 2024
2 parents 8dfb458 + 17f9808 commit 4d3b23d
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,71 @@ This Terraform configuration automates the setup of Azure CDN resources, streaml
### Terraform Architecture
```mermaid
%%tfmermaid
%%{init:{"theme":"default","themeVariables":{"lineColor":"#6f7682","textColor":"#6f7682"}}}%%
flowchart LR
classDef r fill:#5c4ee5,stroke:#444,color:#fff
classDef v fill:#eeedfc,stroke:#eeedfc,color:#5c4ee5
classDef ms fill:none,stroke:#dce0e6,stroke-width:2px
classDef vs fill:none,stroke:#dce0e6,stroke-width:4px,stroke-dasharray:10
classDef ps fill:none,stroke:none
classDef cs fill:#f7f8fa,stroke:#dce0e6,stroke-width:2px
subgraph "n0"["CDN"]
n1["azurerm_cdn_frontdoor_endpoint.<br/>this"]:::r
n2["azurerm_cdn_frontdoor_origin.<br/>this"]:::r
n3["azurerm_cdn_frontdoor_origin_group.<br/>this"]:::r
n4["azurerm_cdn_frontdoor_profile.<br/>this"]:::r
n5["azurerm_cdn_frontdoor_route.<br/>this"]:::r
n6["azurerm_cdn_frontdoor_rule_set.<br/>this"]:::r
end
class n0 cs
subgraph "n7"["DNS"]
n8["azurerm_dns_zone.this"]:::r
end
class n7 cs
subgraph "n9"["Base"]
na["azurerm_resource_group.this"]:::r
end
class n9 cs
subgraph "nb"["Network"]
nc{{"data.azurerm_public_ips.this"}}:::r
end
class nb cs
subgraph "nd"["Input Variables"]
ne(["var.endpoints"]):::v
nf(["var.origin_groups"]):::v
ng(["var.public_ip_origins"]):::v
nh(["var.resource_group_location"]):::v
ni(["var.resource_group_name"]):::v
nj(["var.routes"]):::v
nk(["var.rule_sets"]):::v
nl(["var.zones"]):::v
end
class nd vs
subgraph "nm"["Output Values"]
nn(["output.name_servers"]):::v
no(["output.urls"]):::v
end
class nm vs
n4-->n1
ne--->n1
n3-->n2
nc-->n2
n4-->n3
nf--->n3
na-->n4
n1-->n5
n2-->n5
n6-->n5
nj--->n5
n4-->n6
nk--->n6
na-->n8
nl--->n8
nh--->na
ni--->na
ng--->nc
n8--->nn
n1--->no
```

## Features
Expand Down

0 comments on commit 4d3b23d

Please sign in to comment.