From 968603033f4a74baad716b22773f2c7da41e6704 Mon Sep 17 00:00:00 2001 From: Jenny Shih Date: Fri, 26 Apr 2024 15:48:47 -0400 Subject: [PATCH] change ami filter to AL2023 --- terraform/deploy.sh | 2 +- terraform/deploy_ami_rotate.sh | 2 +- terraform/deploy_ami_rotate_codebuild_script.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/deploy.sh b/terraform/deploy.sh index 74cb4e63..8681784c 100755 --- a/terraform/deploy.sh +++ b/terraform/deploy.sh @@ -16,7 +16,7 @@ echo $aws_tfstate cd $CALCLOUD_BUILD_DIR/ami_rotation ami_json=$(echo $(awsudo $ADMIN_ARN aws ec2 describe-images --region us-east-1 --executable-users self)) ci_ami=`python3 parse_image_json.py "${ami_json}" STSCI-AWS-Linux-2` -ecs_ami=`python3 parse_image_json.py "${ami_json}" STSCI-HST-REPRO-ECS` +ecs_ami=`python3 parse_image_json.py "${ami_json}" STSCI-ECS-AL2023` if [[ "$ci_ami" =~ ^ami-[a-z0-9]+$ ]]; then echo $ci_ami diff --git a/terraform/deploy_ami_rotate.sh b/terraform/deploy_ami_rotate.sh index 3320ef1f..66cbf47b 100755 --- a/terraform/deploy_ami_rotate.sh +++ b/terraform/deploy_ami_rotate.sh @@ -77,7 +77,7 @@ echo $aws_tfstate cd $CALCLOUD_BUILD_DIR/ami_rotation ami_json=$(echo $(awsudo $ADMIN_ARN aws ec2 describe-images --region us-east-1 --executable-users self)) ci_ami=`python3 parse_image_json.py "${ami_json}" STSCI-AWS-Linux-2` -ecs_ami=`python3 parse_image_json.py "${ami_json}" STSCI-HST-REPRO-ECS` +ecs_ami=`python3 parse_image_json.py "${ami_json}" STSCI-ECS-AL2023` if [[ "$ci_ami" =~ ^ami-[a-z0-9]+$ ]]; then echo $ci_ami diff --git a/terraform/deploy_ami_rotate_codebuild_script.sh b/terraform/deploy_ami_rotate_codebuild_script.sh index 3bc62eac..7685d630 100755 --- a/terraform/deploy_ami_rotate_codebuild_script.sh +++ b/terraform/deploy_ami_rotate_codebuild_script.sh @@ -78,7 +78,7 @@ echo $aws_tfstate cd $CALCLOUD_BUILD_DIR/ami_rotation ami_json=$(echo $(aws ec2 describe-images --region us-east-1 --executable-users self)) ci_ami=`python3 parse_image_json.py "${ami_json}" STSCI-AWS-Linux-2` -ecs_ami=`python3 parse_image_json.py "${ami_json}" STSCI-HST-REPRO-ECS` +ecs_ami=`python3 parse_image_json.py "${ami_json}" STSCI-ECS-AL2023` if [[ "$ci_ami" =~ ^ami-[a-z0-9]+$ ]]; then echo $ci_ami