From a5ad2142ebafb056e916e592e57840fa41d4ce31 Mon Sep 17 00:00:00 2001 From: Mendy Danzinger Date: Fri, 12 Mar 2021 17:43:53 -0500 Subject: [PATCH] add ssh key fingerprint (#244) --- scripts/uat.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/uat.sh b/scripts/uat.sh index c9e2a892..ca131863 100755 --- a/scripts/uat.sh +++ b/scripts/uat.sh @@ -32,7 +32,10 @@ SUPPORTED_IMAGES["ubuntu-16-04-x64"]="45446373" SUPPORTED_IMAGES["ubuntu-18-04-x64"]="45446242" SUPPORTED_IMAGES["ubuntu-20-04-x64"]="62569011" -SNYDER_SSH_FINGERPRINT="47:31:9b:8b:87:a7:2d:26:79:17:87:83:53:65:d4:b4" +declare -a SSH_FINGERPRINTS=( +"4c:3d:0d:94:25:ba:00:b0:88:9f:d2:cc:97:8e:8f:43" +"47:31:9b:8b:87:a7:2d:26:79:17:87:83:53:65:d4:b4" +) function main() { cmd=${1:-} @@ -364,9 +367,7 @@ function create_image() { "region": "nyc3", "size": "s-1vcpu-1gb", "image": "${image_id}", - "ssh_keys": [ - "${SNYDER_SSH_FINGERPRINT}" - ], + "ssh_keys": $(printf "\"%s\"" "${SSH_FINGERPRINTS[@]}" | jq -s '.'), "backups": false, "ipv6": false, "tags": [ "${TAG}", "agent-testing" ]