Remove orphan Litestream infrastructure from Terraform #30
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-platform#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
plan-2026-02-26-tf-modularize-postgres→ Epilogue → Item 11Repo
forgejo_admin/pal-e-platformUser Story
As a platform operator
I want to remove the orphan Litestream MinIO resources from Terraform
So that the infrastructure matches reality (CNPG replaced Litestream in Phase 3)
Context
Litestream was the SQLite backup solution — WAL replication to MinIO. It was replaced entirely by CNPG's native PostgreSQL WAL archiving in Phase 3. Four orphan Terraform resources remain in
terraform/main.tfthat manage a MinIO bucket and IAM user that are no longer used by anything.Additionally,
sop-litestream-restorein pal-e-docs documents restoring from Litestream backups that no longer exist. That SOP needs to be archived (tag update, not deletion) — but that's a pal-e-docs concern, not this repo. This issue covers only the Terraform side.File Targets
Files the agent should modify:
terraform/main.tf— remove 4 Litestream resources (lines ~790-832)Files the agent should NOT touch:
Acceptance Criteria
minio_s3_bucket.litestream_backupsremovedminio_iam_user.litestreamremovedminio_iam_policy.litestream_writeremovedminio_iam_user_policy_attachment.litestreamremovedtofu validatepassestofu planshows exactly 4 destroys, 0 additions/changeslitestreamin any Terraform fileTest Expectations
tofu fmt -checkpassestofu validatepassestofu planoutput included in PR showing 4 destroy operationsConstraints
tofu apply— Lucas will apply manually after reviewtofu planand include output in PR description# --- MinIO Buckets ---comment block stays,assetsbucket stays)Checklist
tofu planoutput in PRRelated
plan-2026-02-26-tf-modularize-postgres— parent plan, Epilogue item 11sop-litestream-restore— stale SOP to archive separatelyphase-postgres-3-migrate-pal-e-docs— the phase that made Litestream obsolete