Files
opentf/website/source/docs/providers/terraform/index.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

682 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
terraform Provider: Terraform docs-terraform-index The Terraform provider is used to access meta data from shared infrastructure.

Terraform Provider

The terraform provider provides access to outputs from the Terraform state of shared infrastructure.

Use the navigation to the left to read about the available data sources.

Example Usage

# Shared infrastructure state stored in Atlas
data "terraform_remote_state" "vpc" {
  backend = "atlas"

  config {
    name = "hashicorp/vpc-prod"
  }
}

resource "aws_instance" "foo" {
  # ...
  subnet_id = "${data.terraform_remote_state.vpc.subnet_id}"
}