terraform/website/source/docs/state/remote/local.html.md

678 B

layout page_title sidebar_current description
remotestate Remote State Backend: local docs-state-remote-local Remote state stored using the local file system.

local

Remote state backend that uses the local file system.

Example Usage

terraform remote config \
    -backend=local \
    -backend-config="path=/path/to/terraform.tfstate"

Example Reference

data "terraform_remote_state" "foo" {
    backend = "local"
    config {
        path = "${path.module}/../../terraform.tfstate"
    }
}

Configuration variables

The following configuration options are supported:

  • path - (Required) The path to the tfstate file.