github.com/leeprovoost/terraform@v0.6.10-0.20160119085442-96f3f76118e7/website/source/docs/providers/terraform/r/remote_state.html.md (about) 1 --- 2 layout: "terraform" 3 page_title: "Terraform: terraform_remote_state" 4 sidebar_current: "docs-terraform-resource-remote-state" 5 description: |- 6 Accesses state meta data from a remote backend. 7 --- 8 9 # remote\_state 10 11 Retrieves state meta data from a remote backend 12 13 ## Example Usage 14 15 ``` 16 resource "terraform_remote_state" "vpc" { 17 backend = "atlas" 18 config { 19 path = "hashicorp/vpc-prod" 20 } 21 } 22 23 resource "aws_instance" "foo" { 24 # ... 25 subnet_id = "${terraform_remote_state.vpc.output.subnet_id}" 26 } 27 ``` 28 29 ## Argument Reference 30 31 The following arguments are supported: 32 33 * `backend` - (Required) The remote backend to use. 34 * `config` - (Optional) The configuration of the remote backend. 35 36 ## Attributes Reference 37 38 The following attributes are exported: 39 40 * `backend` - See Argument Reference above. 41 * `config` - See Argument Reference above. 42 * `output` - The values of the configured `outputs` for the root module referenced by the remote state.