Merge pull request #19212 from hashicorp/mildwonkey/docs/backend-local

website: update terraform_remote_state syntax in backend docs
This commit is contained in:
Kristin Laemmert 2018-10-29 10:41:05 -07:00 committed by GitHub
commit b2f7da05c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 13 additions and 13 deletions

View File

@ -38,7 +38,7 @@ terraform {
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "artifactory" backend = "artifactory"
config { config = {
username = "SheldonCooper" username = "SheldonCooper"
password = "AmyFarrahFowler" password = "AmyFarrahFowler"
url = "https://custom.artifactoryonline.com/artifactory" url = "https://custom.artifactoryonline.com/artifactory"

View File

@ -33,7 +33,7 @@ Note that for the access credentials we recommend using a
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "azurerm" backend = "azurerm"
config { config = {
storage_account_name = "terraform123abc" storage_account_name = "terraform123abc"
container_name = "terraform-state" container_name = "terraform-state"
key = "prod.terraform.tfstate" key = "prod.terraform.tfstate"

View File

@ -34,7 +34,7 @@ Note that for the access credentials we recommend using a
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "consul" backend = "consul"
config { config = {
path = "full/path" path = "full/path"
} }
} }

View File

@ -28,7 +28,7 @@ terraform {
```hcl ```hcl
data "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"
endpoints = "http://one:4001 http://two:4001" endpoints = "http://one:4001 http://two:4001"
} }

View File

@ -34,7 +34,7 @@ Note that for the access credentials we recommend using a
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "etcdv3" backend = "etcdv3"
config { config = {
endpoints = ["etcd-1:2379", "etcd-2:2379", "etcd-3:2379"] endpoints = ["etcd-1:2379", "etcd-2:2379", "etcd-3:2379"]
lock = true lock = true
prefix = "terraform-state/" prefix = "terraform-state/"

View File

@ -28,7 +28,7 @@ terraform {
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "gcs" backend = "gcs"
config { config = {
bucket = "terraform-state" bucket = "terraform-state"
prefix = "prod" prefix = "prod"
} }

View File

@ -35,7 +35,7 @@ terraform {
```hcl ```hcl
data "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

@ -29,7 +29,7 @@ terraform {
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "local" backend = "local"
config { config = {
path = "${path.module}/../../terraform.tfstate" path = "${path.module}/../../terraform.tfstate"
} }
} }

View File

@ -31,7 +31,7 @@ Note that for the access credentials we recommend using a
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "manta" backend = "manta"
config { config = {
path = "random/path" path = "random/path"
object_name = "terraform.tfstate" object_name = "terraform.tfstate"
} }

View File

@ -102,7 +102,7 @@ terraform {
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "remote" backend = "remote"
config { config = {
organization = "company" organization = "company"
workspaces { workspaces {

View File

@ -104,7 +104,7 @@ source](/docs/providers/terraform/d/remote_state.html).
```hcl ```hcl
data "terraform_remote_state" "network" { data "terraform_remote_state" "network" {
backend = "s3" backend = "s3"
config { config = {
bucket = "terraform-state-prod" bucket = "terraform-state-prod"
key = "network/terraform.tfstate" key = "network/terraform.tfstate"
region = "us-east-1" region = "us-east-1"

View File

@ -35,7 +35,7 @@ For the access credentials we recommend using a
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "swift" backend = "swift"
config { config = {
path = "terraform_state" path = "terraform_state"
} }
} }

View File

@ -46,7 +46,7 @@ omitting the access token, which can be provided as an environment variable.
```hcl ```hcl
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "atlas" backend = "atlas"
config { config = {
name = "example_corp/networking-prod" name = "example_corp/networking-prod"
} }
} }