From e253de8a772d8c73173807fef2e82ebce59c5153 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 30 Oct 2020 11:40:58 -0400 Subject: [PATCH] create-amis.sh: log the full response if describing the import snapshot tasks fails --- nixos/maintainers/scripts/ec2/create-amis.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index 6cac4bb58d5..d8bdf022d61 100755 --- a/nixos/maintainers/scripts/ec2/create-amis.sh +++ b/nixos/maintainers/scripts/ec2/create-amis.sh @@ -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