Skip to main content

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.

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

Initializer

using Io.Cdktn;

new LocalBackendConfig {
    string Path = null,
    string WorkspaceDir = null
};

Properties

NameTypeDescription
PathstringPath where the state file is stored.
WorkspaceDirstring(Optional) The path to non-default workspaces.

PathOptional

public string Path { get; set; }
  • Type: string
  • Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.

WorkspaceDirOptional

public string WorkspaceDir { get; set; }
  • Type: string
(Optional) The path to non-default workspaces.