Repository navigation
Conversation
infra/terraform/cloudflare-kv provisions one KV namespace per deployed environment (stage and prod), titled from the product's repository slug so two products can share an account, and adopts one Cloudflare already holds under that title when the platform state does not track it. After its apply it lease-publishes the wiring document (app_kv_id, app_kv_title) as WIRING_CLOUDFLARE_KV, which the site's build reads back as WIRING_CLOUDFLARE_KV_<ENV> to render the VISIBILITY_CACHE binding. web's edge on it is enforced on main and advisory on a pull request. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What (AV-3)
infra/terraform/cloudflare-kvis the Cirrus KV root, as in kv-redis-starter and ai-artifacts:<prefix><repo>-app-kv-<env>. The title is unique per product, so two products can share an account.adopt.tf).WIRING_CLOUDFLARE_KV(app_kv_id,app_kv_title). The site's build reads it back asWIRING_CLOUDFLARE_KV_<ENV>and renders theVISIBILITY_CACHEbinding fromapp_kv_id.webdepends on it: the edge is enforced on a push to main and advisory on a pull request.Verified locally
terraform init -backend=false && terraform validatepasses, and so doesterraform fmt -check.orun catalog validate(v2.89.0) reports 0 errors.Generated by Claude Code