FEATURES PRICING ABOUT DOCS LOGIN

remote_state

Retrieves state meta data from a remote backend

Example Usage

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}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

In addition, each output in the remote state appears as a top level attribute on the terraform_remote_state resource.


See the source of this document at Terraform.io

REQUEST A DEMO