Skip to main content
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

import cdktn

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

Properties

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

pathOptional

path: str
  • Type: str
  • Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.

workspace_dirOptional

workspace_dir: str
  • Type: str
(Optional) The path to non-default workspaces.