> ## 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.

# Typescript: LocalBackendConfig

> CDKTN Core API Reference for LocalBackendConfig in Typescript.

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

```typescript theme={null}
import { LocalBackendConfig } from 'cdktn'

const localBackendConfig: LocalBackendConfig = { ... }
```

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

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

***

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

```typescript theme={null}
public readonly path: string;
```

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

Path where the state file is stored.

***

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

```typescript theme={null}
public readonly workspaceDir: string;
```

* *Type:* string

(Optional) The path to non-default workspaces.

***
