Difference between revisions of "Terragrunt.hcl"
Jump to navigation
Jump to search
↑ https://terragrunt.gruntwork.io/docs/reference/built-in-functions/#find_in_parent_folders
Line 10: | Line 10: | ||
* <code>[[generate]]</code> | * <code>[[generate]]</code> | ||
− | https://terragrunt.gruntwork.io/docs/reference/built-in-functions/#find_in_parent_folders | + | * [[Terragrunt functions]]: [[find_in_parent_folders]] <ref>https://terragrunt.gruntwork.io/docs/reference/built-in-functions/#find_in_parent_folders |
− | + | </ref> | |
Revision as of 04:57, 20 March 2023
Blocks
Examples
include { path = find_in_parent_folders() }
generate "remote_states" { path = "tg_remote_states.tf" if_exists = "overwrite" contents = templatefile("../../../remote-states.tmpl", { remote_states = [ { "name" = "vpc" "bucket" = "${get_env("AWS_SESSION_NAME")}-state-storage" "key" = "terraform/${get_env("AWS_SESSION_NAME")}/${get_env("AWS_ENV")}-vpc" } ] }) }
See also
terragrunt.hcl
. blocks:remote_state, include, dependency, generate
- Terragrunt [
show | plan | run-all
|apply
|output
|destroy | terragrunt-info | render-json | graph-dependencies | fmt | hclfmt | validate |aws-provider-patch
], Terragrunt: inputs:,terragrunt --help, terragrunt.hcl
,tfswitch
, Blocks,generate
Advertising: