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

# Go: LocalBackendConfig

> CDKTN Core API Reference for LocalBackendConfig in Go.

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

```go theme={null}
import "github.com/open-constructs/cdk-terrain-go/cdktn"

&cdktn.LocalBackendConfig {
	Path: *string,
	WorkspaceDir: *string,
}
```

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

```go theme={null}
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" />

```go theme={null}
WorkspaceDir *string
```

* *Type:* \*string

(Optional) The path to non-default workspaces.

***
