> ## Documentation Index
> Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Python: LocalBackendConfig

> CDKTN Core API Reference for LocalBackendConfig in Python.

The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.

Read more about this backend in the Terraform docs:
[https://developer.hashicorp.com/terraform/language/settings/backends/local](https://developer.hashicorp.com/terraform/language/settings/backends/local)

## Initializer <a name="Initializer" id="cdktn.LocalBackendConfig.Initializer" />

```python theme={null}
import cdktn

cdktn.LocalBackendConfig(
  path: str = None,
  workspace_dir: str = None
)
```

## Properties <a name="Properties" id="Properties" />

| **Name**                                                                                  | **Type**         | **Description**                                |
| ----------------------------------------------------------------------------------------- | ---------------- | ---------------------------------------------- |
| <code><a href="#cdktn.LocalBackendConfig.property.path">path</a></code>                   | <code>str</code> | Path where the state file is stored.           |
| <code><a href="#cdktn.LocalBackendConfig.property.workspaceDir">workspace\_dir</a></code> | <code>str</code> | (Optional) The path to non-default workspaces. |

***

### `path`<sup>Optional</sup> <a name="path" id="cdktn.LocalBackendConfig.property.path" />

```python theme={null}
path: str
```

* *Type:* str
* *Default:* defaults to terraform.\$\{stackId}.tfstate

Path where the state file is stored.

***

### `workspace_dir`<sup>Optional</sup> <a name="workspace_dir" id="cdktn.LocalBackendConfig.property.workspaceDir" />

```python theme={null}
workspace_dir: str
```

* *Type:* str

(Optional) The path to non-default workspaces.

***
