feat(multi-env): Phase D1 — provision erp-sandbox Postgres DB + role #17
Reference in New Issue
Block a user
Delete Branch "claude/phaseD-erp-sandbox-postgres"
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?
Summary
Phase D1 of ADR-0002 — the first step that creates real sandbox resources (Phase B was inert plumbing).
erpgainsenvs = ["prod", "sandbox"]inpostgres/iac/terraform.tfvars, so the elision flatten materialises a second instance.What the apply adds (additive only)
erp(unchanged)erperp_roleerp-sandbox(new)erp-sandboxerp_sandbox_roleSo the plan is ~6 resources to add for erp-sandbox (
postgresql_role,postgresql_database,postgresql_grant_role,postgresql_functionpgbouncer lookup, + 2 grants) and 0 changed / 0 destroyed on every existing app including proderp. Verified the flatten output with a standalonetofu applybefore pushing.Merge gate
The CI
tofu apply(postgres.yaml) must show the erp-sandbox additions and zero changes/destroys elsewhere. I'll dispatch it on this branch and confirm before merging.Phase D sequence
postgres/creds/erp-sandbox+kvv2/erp-sandbox/configerp-sandboxApplication (GitOps)🤖 Generated with Claude Code