openvidu-deployment: delete_amis.sh: Process AMI_LIST

pull/576/head
cruizba 2020-12-10 12:00:23 +01:00
parent 5e652c19a4
commit 2e0332f405
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
#!/bin/bash -x
set -eu -o pipefail
# Process AMI_LIST
AMI_LIST=($(echo "$AMI_LIST" | tr ',' '\n'))
# Remove the list of AMIs in each region
for line in ${AMI_LIST}
for line in "${AMI_LIST[@]}"
do
REGION=$(echo "${line}" | cut -d":" -f1)
AMI_ID=$(echo "${line}" | cut -d":" -f2)