chore: remove orphaned stacks without bundle instances#53
Open
chore: remove orphaned stacks without bundle instances#53
Conversation
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>
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>
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.
Summary
stacks/stg/fargate-clusters/demo-ecs-cluster/— stg stacks with no backing bundle instance configstacks/dev/foo/— test stack leftoverThese were introduced in the v0.17.0-rc2 upgrade and have no generated component code — only stack metadata and backend config.
terramate generateconfirms 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
BundleInstanceconfigs for the demo ECS/Fargate clusters (catalyst-cluster,demo-ecs-cluster), thenginx-demoservice, and theterramat-catalyst-demo-bucketS3 bucket.Deletes the corresponding generated Terraform stacks under
stacks/(VPC/ALB/cluster/workload stacks indev/prd, S3 bucket stacks inprd/stg), and removes orphan stack metadata/backends includingstacks/dev/fooand thestgdemo-ecs-clusterstub stacks.Reviewed by Cursor Bugbot for commit 93aaf41. Bugbot is set up for automated code reviews on this repo. Configure here.