lol

create-amis.sh: use status message

The progress ID is fairly useless. Status message is more useful for
humans.

authored by

Timothy DeHerrera and committed by
Jonathan Ringer
2d67b946 407998d1

+3 -3
+3 -3
nixos/maintainers/scripts/ec2/create-amis.sh
··· 123 123 local state snapshot_id 124 124 log "Waiting for import task $task_id to be completed" 125 125 while true; do 126 - read -r state progress snapshot_id < <( 126 + read -r state message snapshot_id < <( 127 127 aws ec2 describe-import-snapshot-tasks --region "$region" --import-task-ids "$task_id" | \ 128 - jq -r '.ImportSnapshotTasks[].SnapshotTaskDetail | "\(.Status) \(.Progress) \(.SnapshotId)"' 128 + jq -r '.ImportSnapshotTasks[].SnapshotTaskDetail | "\(.Status) \(.StatusMessage) \(.SnapshotId)"' 129 129 ) 130 - log " ... state=$state progress=$progress snapshot_id=$snapshot_id" 130 + log " ... state=$state message=$message snapshot_id=$snapshot_id" 131 131 case "$state" in 132 132 active) 133 133 sleep 10