create-amis.sh: log the full response if describing the import snapshot tasks fails

This commit is contained in:
Graham Christensen
2020-10-30 12:08:01 -04:00
parent f92a883ddb
commit e253de8a77
@@ -126,6 +126,8 @@ wait_for_import() {
;; ;;
*) *)
log "Unexpected snapshot import state: '${state}'" log "Unexpected snapshot import state: '${state}'"
log "Full response: "
aws ec2 describe-import-snapshot-tasks --region "$region" --import-task-ids "$task_id" >&2
exit 1 exit 1
;; ;;
esac esac