Skip to content

chore: remove orphaned stacks without bundle instances#53

Open
mariux wants to merge 2 commits intomainfrom
cleanup-orphaned-stacks
Open

chore: remove orphaned stacks without bundle instances#53
mariux wants to merge 2 commits intomainfrom
cleanup-orphaned-stacks

Conversation

@mariux
Copy link
Copy Markdown
Contributor

@mariux mariux commented Apr 8, 2026

Summary

  • Remove stacks/stg/fargate-clusters/demo-ecs-cluster/ — stg stacks with no backing bundle instance config
  • Remove stacks/dev/foo/ — test stack leftover

These were introduced in the v0.17.0-rc2 upgrade and have no generated component code — only stack metadata and backend config. terramate generate confirms nothing is missing after removal.

Test plan

  • terramate generate — "Nothing to do, generated code is up to date"
  • terramate list — only stacks with proper {env}/{account}/{region}/ paths remain

🤖 Generated with Claude Code


Note

Medium Risk
Primarily deletes configuration and generated IaC, which is low complexity but could break deployments if any of the removed stacks were still referenced or applied in an environment.

Overview
Removes several Terramate BundleInstance configs for the demo ECS/Fargate clusters (catalyst-cluster, demo-ecs-cluster), the nginx-demo service, and the terramat-catalyst-demo-bucket S3 bucket.

Deletes the corresponding generated Terraform stacks under stacks/ (VPC/ALB/cluster/workload stacks in dev/prd, S3 bucket stacks in prd/stg), and removes orphan stack metadata/backends including stacks/dev/foo and the stg demo-ecs-cluster stub stacks.

Reviewed by Cursor Bugbot for commit 93aaf41. Bugbot is set up for automated code reviews on this repo. Configure here.

Remove stale stacks that have no backing bundle instance:
- stacks/stg/fargate-clusters/demo-ecs-cluster/ (no stg config exists)
- stacks/dev/foo/ (test stack)

These were introduced in the v0.17.0-rc2 upgrade and have no
generated component code — only stack metadata and backend config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mariux mariux marked this pull request as ready for review April 8, 2026 15:27
Remove all ECS cluster, ECS service, and S3 bundle instances and their
generated stacks. The underlying AWS resources have already been cleaned up.

Only organizational account and region bundle instances remain.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant