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:
Geoffrey Wiseman 2017-08-26 10:29:17 -03:00 committed by Martin Atkins
parent 1da54955c6
commit 648acf7331
1 changed files with 1 additions and 1 deletions

View File

@ -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" {