Skip to content

Commit

Permalink
add ssh key fingerprint (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanzinger authored Mar 12, 2021
1 parent 766c949 commit a5ad214
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/uat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:-}
Expand Down Expand Up @@ -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" ]
Expand Down

0 comments on commit a5ad214

Please sign in to comment.