Skip to content

Commit

Permalink
change ami filter to AL2023
Browse files Browse the repository at this point in the history
  • Loading branch information
jshihstsci committed Apr 26, 2024
1 parent e630ab2 commit 9686030
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion terraform/deploy_ami_rotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion terraform/deploy_ami_rotate_codebuild_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9686030

Please sign in to comment.