Clean up AMI builders by default

This commit is contained in:
Timothy J. Aveni
2026-06-20 12:57:40 -07:00
parent 73015da5a3
commit 9d1d41cdef
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ boot generation, reboots once, seeds the ZFS `/nix` volume, installs the final
boot generation that expects `/nix`, and powers off.
After the instance is stopped, `publish-ami.sh` creates the final AMI from the
stopped instance, tags the AMI and snapshots, and writes `artifact.json`.
stopped instance, tags the AMI and snapshots, writes `artifact.json`, and then
destroys the temporary builder resources. Use `--keep-builder` when debugging.
The OpenTofu state in this directory owns only temporary builder resources.
The published AMI and its snapshots are created by the script and are not in