diff --git a/website/source/upgrade-guides/0-7.html.markdown b/website/source/upgrade-guides/0-7.html.markdown index 7213d252b..e70ff382e 100644 --- a/website/source/upgrade-guides/0-7.html.markdown +++ b/website/source/upgrade-guides/0-7.html.markdown @@ -134,6 +134,34 @@ resource "aws_instance" "example" { } ``` +Referencing remote state outputs has also changed. The `.output` keyword is no longer required. + +For example, a config like this: + +``` +resource "terraform_remote_state" "example" { + # ... +} + +resource "aws_instance" "example" { + ami = "${terraform_remote_state.example.output.ami_id}" + # ... +} +``` + +Would now look like this: + +``` +data "terraform_remote_state" "example" { + # ... +} + +resource "aws_instance" "example" { + ami = "${data.terraform_remote_state.example.ami_id}" + # ... +} +``` + ## Migrating to native lists and maps