mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Describing Module Encapsulation
Terraform modules encapsulate their resources, and dependencies can only be expressed through outputs, which wasn't clear to me in the existing documentation. I'm hoping a small change will make that more explicit.
This commit is contained in:
parent
1da54955c6
commit
648acf7331
@ -84,7 +84,7 @@ Additionally, because these map directly to variables, module configuration can
|
||||
|
||||
## Outputs
|
||||
|
||||
Modules can also specify their own [outputs](/docs/configuration/outputs.html). These outputs can be referenced in other places in your configuration, for example:
|
||||
Modules encapsulate their resources. A resource in one module cannot directly depend on resources or attributes in other modules, unless those are exported through [outputs](/docs/configuration/outputs.html). These outputs can be referenced in other places in your configuration, for example:
|
||||
|
||||
```hcl
|
||||
resource "aws_instance" "client" {
|
||||
|
Loading…
Reference in New Issue
Block a user