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 "github.com/open-constructs/cdk-terrain-go/cdktn"

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

Properties

NameTypeDescription
Path*stringPath where the state file is stored.
WorkspaceDir*string(Optional) The path to non-default workspaces.

PathOptional

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

WorkspaceDirOptional

WorkspaceDir *string
  • Type: *string
(Optional) The path to non-default workspaces.