website: update docs for self

This commit is contained in:
Mitchell Hashimoto 2015-02-23 15:04:18 -08:00
parent dd7bc5db0c
commit e2c912c53d
1 changed files with 7 additions and 2 deletions

View File

@ -26,6 +26,11 @@ can reference static keys in the map with the syntax
get the value of the `us-east-1` key within the `amis` variable
that is a mapping.
**To reference attributes of your own resource**, the syntax is
`self.ATTRIBUTE`. For example `${self.private_ip_address}` will
interpolate that resource's private IP address. Note that this is
only allowed/valid within provisioners.
**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"