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

This commit is contained in:
Graham Christensen 2020-10-30 11:40:58 -04:00
parent f92a883ddb
commit e253de8a77
No known key found for this signature in database
GPG Key ID: FE918C3A98C1030F

@ -126,6 +126,8 @@ wait_for_import() {
;;
*)
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
;;
esac