Skip to content

[EPAC-2070]: cleanup terraform state artifacts#599

Merged
riddim-developer-bot[bot] merged 1 commit into
mainfrom
symphony/epac-2070-delete-committed-tfstate-gitignore-terraform-art
May 25, 2026
Merged

[EPAC-2070]: cleanup terraform state artifacts#599
riddim-developer-bot[bot] merged 1 commit into
mainfrom
symphony/epac-2070-delete-committed-tfstate-gitignore-terraform-art

Conversation

@riddim-developer-bot

Copy link
Copy Markdown
Contributor

Why

Terraform local state files were already removed as part of remote-state migration, but the repository still needed explicit hygiene: enforce ignore rules for generated state/plan artifacts and document the operator path after the migration.

What changed

  • Updated infra/terraform/README.md with the post-migration operator workflow:
    • state storage and backend reference (A1 bootstrap script + A2 backend declarations)
    • local run path: aws sso login -> bash infra/terraform/bootstrap.sh <env> -> cd infra/terraform/<env> && terraform init && terraform plan
    • fresh-account path and note that bootstrap/migration is one-time operational setup
    • link to migration PR evidence: EPAC-2060
  • Updated root .gitignore to ensure Terraform state and plan artifacts are ignored.
  • Confirmed .terraform.lock.hcl is not ignored so provider lockfiles can stay committed.

Acceptance criteria

  • �[32mOK�[0m infra/terraform/staging/terraform.tfstate deleted if present in git (already absent in this branch at issue time).
  • �[32mOK�[0m infra/terraform/staging/terraform.tfstate.backup deleted if present in git (already absent).
  • �[32mOK�[0m production/core local state globs similarly absent in git.
  • �[32mOK�[0m .gitignore excludes *.tfstate, *.tfstate.backup, *.tfvars, *.tfplan, .terraform/.
  • �[32mOK�[0m .terraform.lock.hcl remains tracked when present (pattern removed).
  • �[32mOK�[0m infra/terraform/README.md now documents remote state path, local run commands, fresh-account operator flow, and migration evidence link.

Verification

  • git diff --stat origin/main...HEAD shows only .gitignore and infra/terraform/README.md changed.
  • gh pr create performed after rebase + push (branch is clean and rebased).

Skipped checks

  • No Terraform runtime commands were executed in this PR (no functional verification requested by ticket).

Resolves EPAC-2070

Reviewer-Boundary: review-only

@riddim-developer-bot riddim-developer-bot Bot added the autonomous Enrolled in prconverged daemon for automated review and merge label May 25, 2026
@riddim-developer-bot
riddim-developer-bot Bot enabled auto-merge (squash) May 25, 2026 19:04
@riddim-developer-bot
riddim-developer-bot Bot merged commit 2da63b2 into main May 25, 2026
6 of 7 checks passed
@riddim-developer-bot
riddim-developer-bot Bot deleted the symphony/epac-2070-delete-committed-tfstate-gitignore-terraform-art branch May 25, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autonomous Enrolled in prconverged daemon for automated review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants