The README is updating....
root
├── terragrunt.hcl
├── prod
│ └── terragrunt.hcl
├── stag
│ └── terragrunt.hcl
└── dev
├── terragrunt.hcl
└── firewall
└── terragrunt.hcl
└── firewall_group
└── terragrunt.hcl
└── ssh_keys
└── terragrunt.hcl
└── instance
└── terragrunt.hcl
└── vpc
└── terragrunt.hcl
dependency "vpc" {
config_path = "../vpc"
skip_outputs = true
}
## or
dependencies {
paths = ["../vpc", "../mysql", "../redis"]
}
show graph depend
terragrunt graph-dependencies | dot -Tsvg > graph.svg
the terragrunt will read from env.yaml
and secret.yaml
to get variable
create the file secret.yaml with template:
api_key: ""
ssh_key: ""
aws:
profile: ""
bucket: ""
create the env.yaml in for each folder in env with template:
environment: "dev"
region: "ams"
vpc:
cidr_block: "192.168.0.0/24"
rules:
- index: 1
cidr_block: "0.0.0.0/0"
port: "22"
protocol: "TCP"
- index: 2
cidr_block: "0.0.0.0/0"
port: "51820"
protocol: "TCP"
- index: 3
cidr_block: "0.0.0.0/0"
port: "51820"
protocol: "UDP"
ice:
kind: "vhf"
core: "1c"
ram: "1gb"
label: "VPN instance"
backups: "disabled"
tags: ["vpn", "wireguard", "dev"]
os_id: 352