Add AMI artifact management tool
This commit is contained in:
@@ -60,3 +60,20 @@ The final AMI is tagged with:
|
||||
|
||||
Do not deregister the AMI or delete either snapshot while runtime deployments
|
||||
use it.
|
||||
|
||||
## Artifact Cleanup
|
||||
|
||||
List published AMIs and cross-reference qx-deploy runtime registry records:
|
||||
|
||||
```bash
|
||||
nix run ./tofu/ami-builder#ami-artifacts -- list
|
||||
```
|
||||
|
||||
Delete an unused AMI and its root and `/nix` snapshots:
|
||||
|
||||
```bash
|
||||
nix run ./tofu/ami-builder#ami-artifacts -- delete --ami-id ami-...
|
||||
```
|
||||
|
||||
The delete command refuses to delete AMIs referenced by runtime deployment
|
||||
registry records unless you pass `--force`.
|
||||
|
||||
Reference in New Issue
Block a user