docs/remote_state: Update docs to use data instead of resource (#8293)

This commit is contained in:
Dan Norris 2016-08-18 11:38:34 -07:00 committed by Radek Simko
parent 8d8b186cc3
commit c61f04c89d
7 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ terraform remote config \
## Example Referencing ## Example Referencing
``` ```
resource "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "artifactory" backend = "artifactory"
config { config {
username = "SheldonCooper" username = "SheldonCooper"

View File

@ -25,7 +25,7 @@ terraform remote config \
## Example Referencing ## Example Referencing
``` ```
resource "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "atlas" backend = "atlas"
config { config {
name = "bigbang/example" name = "bigbang/example"

View File

@ -25,7 +25,7 @@ terraform remote config \
## Example Referencing ## Example Referencing
``` ```
resource "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "consul" backend = "consul"
config { config {
path = "full/path" path = "full/path"

View File

@ -22,7 +22,7 @@ terraform remote config \
## Example Referencing ## Example Referencing
``` ```
resource "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "etcd" backend = "etcd"
config { config {
path = "path/to/terraform.tfstate" path = "path/to/terraform.tfstate"

View File

@ -23,7 +23,7 @@ terraform remote config \
## Example Referencing ## Example Referencing
``` ```
resource "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "http" backend = "http"
config { config {
address = "http://my.rest.api.com" address = "http://my.rest.api.com"

View File

@ -31,7 +31,7 @@ terraform remote config \
## Example Referencing ## Example Referencing
``` ```
resource "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "s3" backend = "s3"
config { config {
bucket = "terraform-state-prod" bucket = "terraform-state-prod"

View File

@ -21,7 +21,7 @@ terraform remote config \
## Example Referencing ## Example Referencing
``` ```
resource "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "swift" backend = "swift"
config { config {
path = "random/path" path = "random/path"