File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 11!!! warning
22 This deployment is currently in alpha stage. Expect breaking changes.
33
4+ ## AWS Resource Cleanup
5+
6+ The Fargate deployment creates several AWS resources that persist even after your deployment stops. These resources include:
7+
8+ - ECS Clusters
9+ - Task Definitions
10+ - Security Groups
11+ - IAM Roles
12+
13+ All resources created by the Fargate deployment are tagged with ` origin=swe-rex-deployment-auto ` for tracking purposes.
14+
15+ ### Cleaning Up Resources
16+
17+ To clean up all AWS resources created by the Fargate deployment, you can use the built-in teardown utility:
18+
19+ ``` bash
20+ python -m swerex.utils.aws_teardown
21+ ```
22+
23+ This utility will:
24+
25+ 1 . Preview all resources tagged with ` origin=swe-rex-deployment-auto `
26+ 2 . Request confirmation before deletion
27+ 3 . Delete resources in the correct order to handle dependencies
28+ 4 . Provide status updates during the cleanup process
29+
30+ !!! tip
31+ It's recommended to run the teardown utility periodically to avoid accumulating unused AWS resources, which may incur costs.
32+ Running the fargate deployment again will recreate the necessary resources on the fly.
33+
434::: swerex.deployment.fargate.FargateDeployment
You can’t perform that action at this time.
0 commit comments