Tag AMI root snapshots during publish

This commit is contained in:
Timothy J. Aveni
2026-06-20 11:31:29 -07:00
parent a6a3a41313
commit 813ef66cb0
+10
View File
@@ -208,6 +208,16 @@ root_snapshot_id="$(
--output text
)"
aws ec2 create-tags \
--region "$aws_region" \
--resources "$root_snapshot_id" \
--tags \
"Key=Name,Value=${name}-root-${architecture}-${input_hash:0:12}" \
"Key=InputHash,Value=${input_hash}" \
"Key=BuilderGitRev,Value=${builder_git_rev}" \
"Key=FlakeLockRev,Value=${flake_lock_rev}" \
"Key=NixosSystemClosure,Value=${nixos_system_closure}"
run_args=(
--region "$aws_region"
--image-id "$root_ami_id"