github.com/kcburge/terraform@v0.11.12-beta1/website/docs/providers/terraform/index.html.markdown (about)

     1  ---
     2  layout: "terraform"
     3  page_title: "Provider: Terraform"
     4  sidebar_current: "docs-terraform-index"
     5  description: |-
     6    The Terraform provider is used to access meta data from shared infrastructure.
     7  ---
     8  
     9  # Terraform Provider
    10  
    11  The terraform provider provides access to outputs from the Terraform state
    12  of shared infrastructure.
    13  
    14  Use the navigation to the left to read about the available data sources.
    15  
    16  ## Example Usage
    17  
    18  ```hcl
    19  # Shared infrastructure state stored in Atlas
    20  data "terraform_remote_state" "vpc" {
    21    backend = "atlas"
    22  
    23    config {
    24      name = "hashicorp/vpc-prod"
    25    }
    26  }
    27  
    28  resource "aws_instance" "foo" {
    29    # ...
    30    subnet_id = "${data.terraform_remote_state.vpc.subnet_id}"
    31  }
    32  ```