mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-05 04:00:24 -05:00
This is a rework of pull request #6213 submitted by @joshuaspence, adjusted to work with the remote state data source. We also add a deprecation warning for people using the unsupported API, and retain the ability to refer to "_local" as well as "local" for users in a mixed version environment.
37 lines
678 B
Markdown
37 lines
678 B
Markdown
---
|
|
layout: "remotestate"
|
|
page_title: "Remote State Backend: local"
|
|
sidebar_current: "docs-state-remote-local"
|
|
description: |-
|
|
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.
|