pltf terraform force-unlock
Force unlock Terraform state for a spec
Synopsis
Run 'terraform force-unlock' against the generated stack. Use only to clear stale locks after verifying no active operation.
Examples
pltf terraform force-unlock -f env.yaml -e prod --lock-id=12345
pltf terraform force-unlock -f service.yaml -e dev --lock-id=$(cat .terraform.tfstate.lock.info | jq -r .ID)
Options
-e, --env string Environment key to render (dev, prod, etc.)
-f, --file string Path to the Environment or Service YAML file (default "env.yaml")
-h, --help help for force-unlock
-l, --lock Lock state when locking is supported (default true)
--lock-id string Terraform lock ID to unlock
-T, --lock-timeout string Lock timeout (e.g. 0s, 30s)
-m, --modules string Override modules root; defaults to embedded modules
-C, --no-color Disable color output
-o, --out string Output directory for generated Terraform
Options inherited from parent commands
--telemetry Enable anonymous telemetry (usage metrics). Currently a stub/no-op unless enabled.
-V, --verbose Enable verbose logging
SEE ALSO
- pltf terraform - Terraform helpers (generate+init+tf commands)