diff --git a/website/docs/configuration/interpolation.html.md b/website/docs/configuration/interpolation.html.md index e092a4379d..c3f925f35e 100644 --- a/website/docs/configuration/interpolation.html.md +++ b/website/docs/configuration/interpolation.html.md @@ -46,7 +46,7 @@ return list elements by index: `${var.subnets[idx]}`. #### Attributes of your own resource -The syntax is `self.ATTRIBUTE`. For example `${self.private_ip_address}` +The syntax is `self.ATTRIBUTE`. For example `${self.private_ip}` will interpolate that resource's private IP address. -> **Note**: The `self.ATTRIBUTE` syntax is only allowed and valid within diff --git a/website/docs/provisioners/index.html.markdown b/website/docs/provisioners/index.html.markdown index 35629a0c18..dea582f4e5 100644 --- a/website/docs/provisioners/index.html.markdown +++ b/website/docs/provisioners/index.html.markdown @@ -19,7 +19,7 @@ resource "aws_instance" "web" { # ... provisioner "local-exec" { - command = "echo ${self.private_ip_address} > file.txt" + command = "echo ${self.private_ip} > file.txt" } } ``` @@ -114,7 +114,7 @@ resource "aws_instance" "web" { # ... provisioner "local-exec" { - command = "echo ${self.private_ip_address} > file.txt" + command = "echo ${self.private_ip} > file.txt" on_failure = "continue" } }