From ab55e4d046221aae072a2270b11bfb04ff6114da Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Sat, 18 Mar 2023 23:51:03 +0100 Subject: [PATCH] Deployments: createAMI.sh script back to normal for CE --- openvidu-server/deployments/ce/aws/createAMI.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/openvidu-server/deployments/ce/aws/createAMI.sh b/openvidu-server/deployments/ce/aws/createAMI.sh index 623102c1..eadf07d9 100755 --- a/openvidu-server/deployments/ce/aws/createAMI.sh +++ b/openvidu-server/deployments/ce/aws/createAMI.sh @@ -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 \