mammoth-camera-93119
08/14/2023, 2:52 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 2:59 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 3:03 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 4:34 PMversion: 0.1
projects:
{{- range $project := matchPaths "envs/:env/terragrunt.hcl" }}
- path: .
name: {{ $project.env }}
terraform_var_files:
- {{ $project._path }}
{{- end }}
infra-terragrunt-envs
little-author-61621
version: 0.1
projects:
{{- range $project := matchPaths "envs/:env(.*)/terragrunt.hcl" }}
- path: {{ $project._dir }}
name: {{ $project.env }}
{{- end }}
terraform_var_files
is for .tfvar
files so I don’t think we need this.
path
should point to the directory that contains the Terragrunt project
And I’ve change :env
to :env(.*)
so this can match on multiple depths of subfolders.mammoth-camera-93119
08/14/2023, 4:39 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 4:44 PMlittle-author-61621
terragrunt.hcl
files load the source from a remote location? If so you might need to set up some credentials for them as per https://www.infracost.io/docs/integrations/github_app/#usageCircle for estimation is spinning - its a decently sized project, which is why if i had to guessDepending on the number of projects, the first run might be slower since we’ll be populating the cache.
mammoth-camera-93119
08/14/2023, 4:50 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 4:51 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 5:15 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 5:19 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 6:06 PMlittle-author-61621
mammoth-camera-93119
08/14/2023, 6:08 PM