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
data "terraform_remote_state" "foo" {
backend = "artifactory"
config {
config = {
username = "SheldonCooper"
password = "AmyFarrahFowler"
url = "https://custom.artifactoryonline.com/artifactory"

View File

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

View File

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

View File

@ -28,7 +28,7 @@ terraform {
```hcl
data "terraform_remote_state" "foo" {
backend = "etcd"
config {
config = {
path = "path/to/terraform.tfstate"
endpoints = "http://one:4001 http://two:4001"
}

View File

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

View File

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

View File

@ -35,7 +35,7 @@ terraform {
```hcl
data "terraform_remote_state" "foo" {
backend = "http"
config {
config = {
address = "http://my.rest.api.com"
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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