Skip to content

docs: document S3-native state locking (useLockfile) for the S3 backend#17

Merged
so0k merged 2 commits into
mainfrom
claude/s3-backend-locking-docs-6ethbe
Jul 3, 2026
Merged

docs: document S3-native state locking (useLockfile) for the S3 backend#17
so0k merged 2 commits into
mainfrom
claude/s3-backend-locking-docs-6ethbe

Conversation

@so0k

@so0k so0k commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Documentation for the S3 backend locking feature shipping in the upcoming release (open-constructs/cdk-terrain#254S3-backend: add useLockfile field and deprecate dynamodbTable).

The S3Backend now supports S3-native state locking via a new useLockfile field. Terraform/OpenTofu writes a lock file next to the state object (<key>.tflock) instead of requiring a separate DynamoDB table, and the dynamodbTable field is now deprecated.

Changes

  • concepts/remote-backends: new "State Locking with the S3 Backend" section — compares S3-native vs. DynamoDB locking, shows how to enable useLockfile with per-language examples (TypeScript, Java, Python, C#, Go), notes the required s3:GetObject/s3:PutObject/s3:DeleteObject permissions, and adds a step-by-step migration guide from dynamodbTable to useLockfile.
  • release/s3-native-locking (new page): What's New entry summarizing the new field, the dynamodbTable deprecation, and the migration path.
  • release/index: adds a "What's New" link to the new release page.
  • docs.json: nav entry for the new release page.

Notes

  • The auto-generated content/api-reference/**/s3-backend-config pages will pick up useLockfile and the updated dynamodbTable JSDoc when the API reference is regenerated from source — they are intentionally not hand-edited (per CLAUDE.md).
  • This release also includes the function-availability / targetVersions work already documented in #16. Both PRs add a ## What's New entry to release/index.mdx and a nav line to docs.json, so a trivial merge of those two lists may be needed depending on merge order.

🤖 Generated with Claude Code


Generated by Claude Code

Document the new `useLockfile` field on the S3 backend, which enables
S3-native state locking (lock file at <key>.tflock) and removes the need
for a separate DynamoDB table. Covers enabling it, required S3
permissions, and migrating from `dynamodbTable`, which is now deprecated.

- concepts/remote-backends: new "State Locking with the S3 Backend"
  section with per-language examples and a migration guide
- release/s3-native-locking (new page): What's New entry
- release/index: What's New link to the new page
- docs.json: nav entry for the new release page

Documents open-constructs/cdk-terrain#254.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VzSEXFAfYFCKLQU2CHeCRN
@mintlify

mintlify Bot commented Jun 29, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
cdkterrain 🟢 Ready View Preview Jun 29, 2026, 1:57 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

S3-native locking requires Terraform/OpenTofu 1.10+, which is newer than
the default target ranges. Add callouts directing users to declare
`targetVersions` in cdktf.json so synthesis validates native locking
against the runtimes they target, mirroring the function-usage synth-time
validation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VzSEXFAfYFCKLQU2CHeCRN
@so0k so0k merged commit 5874b67 into main Jul 3, 2026
1 check passed
@so0k so0k deleted the claude/s3-backend-locking-docs-6ethbe branch July 3, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants