Deployments: createAMI.sh script back to normal for CE

pull/797/head
pabloFuente 2023-03-18 23:51:03 +01:00
parent 11129e25b8
commit ab55e4d046
1 changed files with 3 additions and 6 deletions

View File

@ -4,9 +4,9 @@ set -eu -o pipefail
CF_RELEASE=${CF_RELEASE:-false}
AWS_KEY_NAME=${AWS_KEY_NAME:-}
# if [[ $CF_RELEASE == "true" ]]; then
# git checkout v$OPENVIDU_VERSION
# fi
if [[ $CF_RELEASE == "true" ]]; then
git checkout v$OPENVIDU_VERSION
fi
export AWS_DEFAULT_REGION=eu-west-1
@ -14,9 +14,6 @@ DATESTAMP=$(date +%s)
TEMPJSON=$(mktemp -t cloudformation-XXX --suffix .json)
# Get Latest Ubuntu AMI id from specified region
# Parameters
# $1 Aws region
getUbuntuAmiId() {
local AMI_ID=$(
aws --region ${1} ec2 describe-images \