Skip to content

Commit 9a3a9a7

Browse files
Add docs about the aws_teardown scripts
1 parent 5469280 commit 9a3a9a7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/api/deployments/fargate.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
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

0 commit comments

Comments
 (0)