mirror of
https://github.com/hashicorp/terraform.git
synced 2026-04-21 22:28:03 -04:00
This is part of a general effort to move all of Terraform's non-library package surface under internal in order to reinforce that these are for internal use within Terraform only. If you were previously importing packages under this prefix into an external codebase, you could pin to an earlier release tag as an interim solution until you've make a plan to achieve the same functionality some other way.
36 lines
1.1 KiB
HCL
36 lines
1.1 KiB
HCL
|
|
module "foo" {
|
|
source = "./child"
|
|
count = 2
|
|
|
|
normal = "yes"
|
|
|
|
normal_block {}
|
|
|
|
_ {
|
|
# This "escaping block" is an escape hatch for when a module
|
|
# declares input variable names that collide with meta-argument
|
|
# names. The examples below are not really realistic because they
|
|
# are long-standing names that predate the need for escaping,
|
|
# but we're using them as a proxy for new meta-arguments we might
|
|
# add in future language editions which might collide with
|
|
# names defined in pre-existing modules.
|
|
|
|
# note that count is set both as a meta-argument above _and_ as
|
|
# an resource-type-specific argument here, which is valid and
|
|
# should result in both being populated.
|
|
count = "not actually count"
|
|
|
|
# for_each is only set in here, not as a meta-argument
|
|
for_each = "not actually for_each"
|
|
|
|
lifecycle {
|
|
# This is a literal lifecycle block, not a meta-argument block
|
|
}
|
|
|
|
_ {
|
|
# It would be pretty weird for a resource type to define its own
|
|
# "_" block type, but that's valid to escape in here too.
|
|
}
|
|
}
|
|
}
|