From 0b1b61ed2e5e0128a79e76988b39aae083b5d913 Mon Sep 17 00:00:00 2001 From: Brian Hayden <5826711+bhayden53@users.noreply.github.com> Date: Thu, 29 Apr 2021 21:15:39 -0400 Subject: [PATCH] hotfix for deploy script not deleting previous crds context file (#109) * quickfix for deploy script to remove old crds context file * version increment --- terraform/deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terraform/deploy.sh b/terraform/deploy.sh index 644c2299..eb5a6a69 100755 --- a/terraform/deploy.sh +++ b/terraform/deploy.sh @@ -3,7 +3,7 @@ # ADMIN_ARN is set in the ci node env and should not be included in this deploy script # variables that will likely be changed frequently -CALCLOUD_VER="0.4.9" +CALCLOUD_VER="0.4.10" CALDP_VER="0.2.8" CAL_BASE_IMAGE="stsci/hst-pipeline:CALDP_20210415_CAL_final" @@ -92,6 +92,8 @@ crds_response=`awsudo $ADMIN_ARN terraform output | grep "crds"` crds_context=${crds_response##*=} crds_context=`echo $crds_context | tr -d '"'` +awsudo $ADMIN_ARN aws s3 rm s3://${bucket_url}/crds_env_vars/ --recursive + awsudo $ADMIN_ARN aws s3api put-object --bucket $bucket_url --key messages/ awsudo $ADMIN_ARN aws s3api put-object --bucket $bucket_url --key inputs/ awsudo $ADMIN_ARN aws s3api put-object --bucket $bucket_url --key outputs/