Tag AMI root snapshots during publish
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user