[EPAC-2070]: cleanup terraform state artifacts#599
Merged
riddim-developer-bot[bot] merged 1 commit intoMay 25, 2026
Merged
Conversation
riddim-developer-bot
Bot
deleted the
symphony/epac-2070-delete-committed-tfstate-gitignore-terraform-art
branch
May 25, 2026 19:08
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.
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
infra/terraform/README.mdwith the post-migration operator workflow:aws sso login->bash infra/terraform/bootstrap.sh <env>->cd infra/terraform/<env> && terraform init && terraform plan.gitignoreto ensure Terraform state and plan artifacts are ignored..terraform.lock.hclis not ignored so provider lockfiles can stay committed.Acceptance criteria
infra/terraform/staging/terraform.tfstatedeleted if present in git (already absent in this branch at issue time).infra/terraform/staging/terraform.tfstate.backupdeleted if present in git (already absent)..gitignoreexcludes*.tfstate,*.tfstate.backup,*.tfvars,*.tfplan,.terraform/..terraform.lock.hclremains tracked when present (pattern removed).infra/terraform/README.mdnow documents remote state path, local run commands, fresh-account operator flow, and migration evidence link.Verification
git diff --stat origin/main...HEADshows only.gitignoreandinfra/terraform/README.mdchanged.gh pr createperformed after rebase + push (branch is clean and rebased).Skipped checks
Resolves EPAC-2070
Reviewer-Boundary: review-only