From 7b3f32f3de2117e7f93cee79b9fd50fa07b939a7 Mon Sep 17 00:00:00 2001 From: Gabriel Francisco Date: Wed, 23 Aug 2017 18:41:16 +0200 Subject: [PATCH] Resource aws_instance does not have attr private_ip_address (#15890) --- website/docs/configuration/interpolation.html.md | 2 +- website/docs/provisioners/index.html.markdown | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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" } }