Auto-approve AMI builder cleanup

This commit is contained in:
Timothy J. Aveni
2026-06-27 22:57:58 -07:00
parent e66bc24def
commit d250191ed0
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ boot generation that expects `/nix`, and powers off.
After the instance is stopped, `publish-ami.sh` creates the final AMI from the After the instance is stopped, `publish-ami.sh` creates the final AMI from the
stopped instance, tags the AMI and snapshots, writes `artifact.json`, and then stopped instance, tags the AMI and snapshots, writes `artifact.json`, and then
destroys the temporary builder resources. Use `--keep-builder` when debugging. destroys the temporary builder resources without a confirmation prompt. Use
`--keep-builder` when debugging.
The OpenTofu state in this directory owns only temporary builder resources. 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 The published AMI and its snapshots are created by the script and are not in
+1
View File
@@ -301,6 +301,7 @@ jq -n \
if [ "$keep_builder" = false ]; then if [ "$keep_builder" = false ]; then
tofu destroy \ tofu destroy \
-auto-approve \
-var "aws_region=$aws_region" \ -var "aws_region=$aws_region" \
-var "name=$name" \ -var "name=$name" \
-var "system=$system" \ -var "system=$system" \