website: update the docs more to say more
This commit is contained in:
parent
f558f7a0c5
commit
8aae8099e8
|
@ -27,7 +27,12 @@ that is a mapping.
|
|||
**To reference attributes of other resources**, the syntax is
|
||||
`TYPE.NAME.ATTRIBUTE`. For example, `${aws_instance.web.id}`
|
||||
will interpolate the ID attribute from the "aws\_instance"
|
||||
resource named "web".
|
||||
resource named "web". If the resource has a `count` attribute set,
|
||||
you can access individual attributes with a zero-based index, such
|
||||
as `${aws_instance.web.0.id}`. You can also use the splat syntax
|
||||
to get a list of all the attributes: `${aws_instance.web.*.id}`.
|
||||
This is documented in more detail in the
|
||||
[resource configuration page](/docs/configuration/resources.html).
|
||||
|
||||
**To reference outputs from a module**, the syntax is
|
||||
`MODULE.NAME.OUTPUT`. For example `${module.foo.bar}` will
|
||||
|
|
Loading…
Reference in New Issue